I want to left justify the summary text for each item in the catregory grid page, but left the rest of the content (thumbnail, reviews, price) centered. How would I did this?
Also, I would like to add some spacing between the summary and the price.
Thanks,
Left justifty Summary on categorygridpage
Left justifty Summary on categorygridpage
David Jasiewicz
President
Trick Concepts - Metal Fab. Engineering and Product Design
http://www.trickconcepts.com-- If you are an ASP or PHP programmer or CSS web specialist I will gladly trade for graphic design, mechanical engineering or metal fabrication service! --
President
Trick Concepts - Metal Fab. Engineering and Product Design
http://www.trickconcepts.com-- If you are an ASP or PHP programmer or CSS web specialist I will gladly trade for graphic design, mechanical engineering or metal fabrication service! --
Re: Left justifty Summary on categorygridpage
I think you will be required to some CSS styles. For example you can setting text-alig:left on following style
Code: Select all
.catalog .tableNode div span { text-align:left;}
Re: Left justifty Summary on categorygridpage
Thanks. However I am having trouble figuring out where the summary is called out. Where in the code would I put the div tag?
Code: Select all
<div class="catalogWrapper">
<asp:DataList ID="CatalogNodeList" runat="server" RepeatColumns="3" RepeatDirection="Horizontal" Width="100%"
OnItemDataBound="CatalogNodeList_ItemDataBound" DataKeyField="CatalogNodeId" CssClass="catalog" EnableViewState="false" HorizontalAlign="Left">
<ItemStyle HorizontalAlign="center" VerticalAlign="bottom" Width="33%" CssClass="tableNode" />
<ItemTemplate>
<asp:PlaceHolder ID="phItemTemplate1" runat="server"></asp:PlaceHolder>
<uc:ProductPrice ID="Price" runat="server" Product='<%#Container.DataItem%>' />
<asp:PlaceHolder ID="phItemTemplate2" runat="server"></asp:PlaceHolder>
<div style="margin-top:10px;margin-bottom:20px" id="Add2CartLinkDiv" runat="server" visible="false" /></div>
</ItemTemplate>
<SeparatorTemplate> </SeparatorTemplate>
<SeparatorStyle CssClass="separator" Width="1" />
</asp:DataList>
<br /><br /><br />
<div style="margin-top:30px;margin-bottom:20px" >
David Jasiewicz
President
Trick Concepts - Metal Fab. Engineering and Product Design
http://www.trickconcepts.com-- If you are an ASP or PHP programmer or CSS web specialist I will gladly trade for graphic design, mechanical engineering or metal fabrication service! --
President
Trick Concepts - Metal Fab. Engineering and Product Design
http://www.trickconcepts.com-- If you are an ASP or PHP programmer or CSS web specialist I will gladly trade for graphic design, mechanical engineering or metal fabrication service! --
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Left justifty Summary on categorygridpage
That would depend on what placeholder you are adding your summary to from the code behind and you can format it there. If it isn't there, then you could add a new label or placeholder formatted the way you want.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Re: Left justifty Summary on categorygridpage
I'll admit that I am not too good with the acsx.cs files. Here is what I am trying:
Definately not working.
Code: Select all
//OUTPUT SUMMARYcellField .Attributes.Add("style", "TEXT-ALIGN: left");
itemTemplate1.Controls.Add(new style ("TEXT-ALIGN: left"));
itemTemplate1.Controls.Add(new LiteralControl(catalogNode.Summary));
}
itemTemplate1.Controls.Add(new LiteralControl("<br />"));
David Jasiewicz
President
Trick Concepts - Metal Fab. Engineering and Product Design
http://www.trickconcepts.com-- If you are an ASP or PHP programmer or CSS web specialist I will gladly trade for graphic design, mechanical engineering or metal fabrication service! --
President
Trick Concepts - Metal Fab. Engineering and Product Design
http://www.trickconcepts.com-- If you are an ASP or PHP programmer or CSS web specialist I will gladly trade for graphic design, mechanical engineering or metal fabrication service! --