Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8226455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:46:37+00:00 2026-06-07T15:46:37+00:00

I am having styling issue with products loaded in datalist control in Chrome. While

  • 0

I am having styling issue with products loaded in datalist control in Chrome.
While everything looks ok in FF, Chrome gives me weird styling.
Here are the screenshots:

FF: http://gyazo.com/214fcfafbfb91e17ea1f084af84e61e4.png?1341955023

Chrome: http://gyazo.com/4459dc38dc01a18f62780392d8fb3625.png?1341955739

Here is the html markup:

<div class="product-grid">
        <asp:DataList ID="dlCatalog" runat="server" RepeatColumns="2" RepeatDirection="Horizontal"
            RepeatLayout="Table" ItemStyle-CssClass="item-box">
            <ItemTemplate>
                <nopCommerce:ProductBox1 ID="ctrlProductBox" Product='<%# Container.DataItem %>'
                    runat="server" />
            </ItemTemplate>
        </asp:DataList>
    </div>

Here is the CSS:

.product-grid { margin-bottom: 15px; width: 586px; text-align: center; margin-left: -10px; }
.product-grid .item-box { text-align: center; vertical-align: top; padding: 10px 11px 60px 11px; }
.product-grid .product-item { text-align: center; margin: 10px 5px 10px 5px; width: 250px; background: url('images/prod_grid_box_bg.gif') no-repeat 0 100%; }
.product-grid .product-item .product-title { font-weight: bold; font-size: 12px; background: url('images/deal_box_hl.gif') no-repeat 0 0; padding-left: 10px; }
.product-grid .product-item .product-title a { background: url('images/deal_box_hr.gif') no-repeat 100% 0; display: block; height: 2em; line-height: 1.3em; overflow: hidden hidden; padding: 4px 10px 8px 0px; }
.product-grid .product-item .picture { text-align: center; margin-top: 10px; }
.product-grid .product-item .description { margin: 5px 5px 0 5px; text-align: center; padding: 10px 5px 10px 5px; border-top: solid 1px #e3e3e3; color: #555; height: 50px; }
.product-grid .product-item .add-info { vertical-align: bottom; text-align: right; width: 250px; height: 85px; position: relative; }
.product-grid .product-item .add-info .prices { text-align: right; vertical-align: middle; position: absolute; bottom: 15px; right: 10px; }
.product-grid .product-item .add-info .buttons { vertical-align: middle; position: absolute; bottom: 15px; left: 10px; text-align: left; }
.product-grid .product-item .add-info .prices .productPrice { color: green; }
.product-grid .product-item .add-info .prices .oldproductPrice { color: Red; text-decoration: line-through; }

PRODUCT BOX CODE ADDED:

<%@ Control Language="C#" AutoEventWireup="true" Inherits="NopSolutions.NopCommerce.Web.Modules.ProductBox1Control"
  CodeBehind="ProductBox1.ascx.cs" %>
<%@ Register TagPrefix="nopCommerce" TagName="ProductPrice2" Src="~/Modules/ProductPrice2.ascx" %>

<script type="text/javascript" language="javascript" src="../Scripts/jquery.expander.js"></script>
<script type="text/javascript">
    // you can override default options globally, so they apply to every .expander() call
    //$.expander.defaults.slicePoint = 50;

    $(document).ready(function () {
        // simple example, using all default options unless overridden globally
        //$('div.expandable h3').expander();

        // *** OR ***

        // override default options (also overrides global overrides)
        $('div.expandable h3').expander({
            slicePoint: 50,  // default is 100
            expandPrefix: '.....', // default is '... '
            expandText: '>>', // default is 'read more'
            collapseTimer: 5000, // re-collapses after 5 seconds; default is 0, so no re-collapsing
            userCollapseText: '<<'  // default is 'read less'
        });

    });
</script>
<%--<div class="product-item">
  <h2 class="product-title">
    <asp:HyperLink ID="hlProduct" runat="server" />
  </h2>
  <div class="picture">
    <asp:HyperLink ID="hlImageLink" runat="server" />
  </div>
  <div class="description">
    <asp:Literal runat="server" ID="lShortDescription"></asp:Literal>
  </div>
  <div class="add-info">
    <div class="prices">
      <nopCommerce:ProductPrice2 ID="ctrlProductPrice" runat="server" ProductId='<%#Eval("ProductId") %>' />
    </div>
    <div class="buttons">
      <asp:Button runat="server" ID="btnProductDetails" OnCommand="btnProductDetails_Click"
        Text="<% $NopResources:Products.ProductDetails %>" ValidationGroup="ProductDetails"
        CommandArgument='<%# Eval("ProductId") %>' CssClass="productgridproductdetailbutton" /><br />
      <asp:Button runat="server" ID="btnAddToCart" OnCommand="btnAddToCart_Click" Text="<% $NopResources:Products.AddToCart %>"
        ValidationGroup="ProductDetails" CommandArgument='<%# Eval("ProductId") %>' CssClass="productgridaddtocartbutton" />
    </div>
  </div>
</div>--%>
<div class="pblock">

    <div class="borderProd">
        <div class="expandable">
            <h3>
                <asp:HyperLink ID="hlProduct" runat="server" />
            </h3>
        </div>

        <asp:Literal runat="server" ID="lShortDescription" Visible="false"></asp:Literal>
    </div>

  <div class="img">
    <a id="hlImageLink" runat="server">
        <img id="hlImage" runat="server" style="max-width:170px;max-height:120px"/>
    </a>
  <div class="body">

  </div>
  <div class="body">
    <nopCommerce:ProductPrice2 ID="ctrlProductPrice" runat="server" ProductId='<%#Eval("ProductId") %>' />
  </div>
  <asp:Label ID="labUniversal" runat="server" ForeColor="Blue" Text=""></asp:Label>
</div>
</div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T15:46:38+00:00Added an answer on June 7, 2026 at 3:46 pm

    I fixed the problem by setting the height of the item-box to 275px.
    Thanks everyone for your help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I seem to be having a problem with styling my links for chrome, yet
While I'm fine with standard control styling in silverlight I have recently began using
I'm having a problem while trying to dynamically change a table cell's styling class
Here i have some code from my website I'm making. I'm having trouble styling
I am having an issue with DataTables with the styling of the header and
I'm having a little issue, for styling purposes I'm using a Definition list instead
I have a shipping/billing input form and I'm having trouble styling the input fields
I'm having a problem styling my ListBox selection background. I used ListView originally, it
I've made a javascript autocomplete, but i'm having trouble in its CSS styling. What
Having a hard time with labels on a ggplot2 plot. Here's a similar plot

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.