Results 1 to 4 of 4

Thread: Stuck on Making a List

  1. #1
    Join Date
    Apr 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Stuck on Making a List

    Hey, I'm stuck on something, can't seem to figure it out.

    Trying to make it something like this:
    http://i43.tinypic.com/2rc4jzs.jpg

    But getting this instead:
    http://i42.tinypic.com/20jzo0.jpg

    My HTML looks like this:
    Code:
    <ul class="zxy">
    	<li></li>
    	<li></li>
    	<li></li>
    	<li></li>
    	<li></li>
    	<li></li>
    	<li></li>
    	<li></li>
    </ul>
    Basically I'm trying to make all the content in "zxy" to be centered. And each <li> to be 200px in width and height while having 5px space between each other. Help please.

  2. #2
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    You might share your CSS...?

    Your question is unclear.
    Please provide more information, and be as specific as possible.
    • What do you want to accomplish?
    • What have you already tried?
    • What problems did you encounter?

    Also, please be sure that you have included all relevant code and/or a link to the page in question.

  3. #3
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there sunxyre,

    and a warm welcome to these forums.

    Here is an example for you to try...
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
       "http://www.w3.org/TR/html4/strict.dtd">
    <html lang="en">
    <head>
    
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="language" content="english"> 
    <meta http-equiv="Content-Style-Type" content="text/css">
    
    <title>boxes</title>
    
    <style type="text/css">
    body {
        background-color:#f0f0f0;
     }
    #boxes {
        width:828px;
        padding:10px 5px 5px 10px;
        border:1px solid #ccc;
        margin:20px auto 0;
        list-style-type:none;
        overflow:hidden;
        box-shadow:#666 6px 6px 12px;
        background-color:#fff;
     }
    #boxes li {
        float:left;
        width:200px;
        height:200px;
        border:1px solid #ccc;
        margin:0 5px 5px 0;
        box-shadow:#666 2px 2px 2px;
        background-color:#fbfbfb;
     }
    </style>
    
    </head>
    <body>
    
    <ul id="boxes">
     <li></li>
     <li></li>
     <li></li>
     <li></li>
     <li></li>
     <li></li>
     <li></li>
     <li></li>
    </ul>
    
    </body>
    </html>
    
    coothead

  4. #4
    Join Date
    Jan 2011
    Location
    Southeastern CT
    Posts
    612
    Thanks
    46
    Thanked 32 Times in 32 Posts

    Default

    Coothead that looks very nice.Thanks for sharing more of your talent with us.
    Thanks,

    Bud

Bookmarks

Posting Permissions

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