...

View Full Version : IS there a way to give a list it's own background?



<(^^<)KIRBY
03-08-2005, 10:16 PM
So, would it be possible to give a simple <ul> its own background? or would it have to be in a table?

chump2877
03-09-2005, 02:16 AM
Why don't you apply a CSS background style to your <ul> or <li> tags and find out? :D

i.e.,


<ul style="background-color:#??????"></ul>

or nest the <ul> tags in <div> tags:


<div style="background-color:#??????">
<ul></ul>
</div>

ronaldb66
03-09-2005, 08:14 AM
The ul is basically a block level element and can be given the usual background treatment with CSS properties (color, image, etc.); there's no need to wrap it in another container.
You may have to twiddle with padding and margins a bit, though, since various browsers use different methods to achieve the familiar indenting.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum