View Full Version : help with code for css
esabdul
01-10-2007, 08:46 PM
hi guyz,
i'm trying to create 3 rows for a table with css.can anyone please tell me how to do it. i have only manged to create a table and i'm stuck:
this is what i have done:
product-availability-request{
display:table;
border: 3px inset black;
}
plz how do i create rows
david_kw
01-10-2007, 08:56 PM
Interesting. I've never seen anyone use this before but here is a link to some information about CSS tables.
http://www.w3.org/TR/REC-CSS2/tables.html
Do you have a sample XML file?
david_kw
esabdul
01-10-2007, 10:54 PM
yes i have a sample xml file:
<?xml version="1.0" ?>
<?xml-stylesheet type="text/css" href="request-summary.css" ?>
<product-availability-request customer-reference="RDD" customer-name="Sports Development" request-reference="RS/2005/172">
<time-period>
<start-date>15/12/2006</start-date>
<end-date>17/12/2006</end-date>
</time-period>
<delivery-location>
<location>
<country>UK</country>
<state>Essex</state>
<post-code>SS15 6EE</post-code>
<address>Technical Centre, Laindon, SS15 6EE</address>
</location>
</delivery-location>
<description>Special order for alloy wheels to go on new RS model under development</description>
<quantity>100</quantity>
<product-preference type="preferred">
<product ref="7017RSRSC" img="7017rsrsc.jpg">17" RSR Shadow Chrome</product>
</product-preference>
<product-preference type="not">
<product ref="7017HYBRID">17" Hybrid Shadow Chrome</product>
<product ref="6515HYBRID">15" Hybrid Shadow Chrome</product>
</product-preference>
<price-preference type="max">
<price currency="GBP">300.00</price>
</price-preference>
<price-preference type="min">
<price currency="GBP">200.00</price>
</price-preference>
</product-availability-request>
david_kw
01-11-2007, 01:43 AM
Well good luck. I messed with it and really didn't get far. What a pain. Is there any particular reason you want to use CSS instead of XSL?
david_kw
Shaffer
01-13-2007, 06:35 PM
Try working with: line-break: 3; line-break: strict;
etc.
Sorry I couldn't be much more help.
Shaffer.
Alex Vincent
01-14-2007, 02:36 AM
I'm attaching a sample CSS stylesheet I wrote several years ago for a personal project. Most of what you want will come from the display property of CSS - this handles tables in XML.
HTH
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.