Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Oct 2004
    Posts
    67
    Thanks
    0
    Thanked 0 Times in 0 Posts

    IS there a way to give a list it's own background?

    So, would it be possible to give a simple <ul> its own background? or would it have to be in a table?

  • #2
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,830
    Thanks
    21
    Thanked 157 Times in 148 Posts
    Why don't you apply a CSS background style to your <ul> or <li> tags and find out?

    i.e.,

    Code:
    <ul style="background-color:#??????"></ul>
    or nest the <ul> tags in <div> tags:

    Code:
    <div style="background-color:#??????">
    <ul></ul>
    </div>
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :-)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!
    ♪♪ …Need Web Hosting For My YouTube-To-Mp3 Conversion Software? Check Here !!… ♪♪

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Css

    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.
    Regards,
    Ronald.
    ronaldvanderwijden.com


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •