Results 1 to 8 of 8

Thread: Border Issue

  1. #1
    Join Date
    Oct 2009
    Location
    USA
    Posts
    40
    Thanks
    15
    Thanked 0 Times in 0 Posts

    Default Border Issue

    Issue @ metzhere.com/yogamoves

    I created #container with a border and wanted it to wrap around the other divs (excluding #tagline and #header) I have it right for the most part except up at the top, there is a space that I cannot find where to change in my css properties. Any ideas? I think it must be something with the ul properties?

    Thank you,
    Amber

    Note: Am I going about borders the wrong way? Should I be using the borders on the individual divs, or is wrapping with a container fair?
    Last edited by jerdy; 10-22-2009 at 07:22 PM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Wrapping is cool. And you are right, it is the UL element. Add this (highlighted) to its style in your stylesheet:

    Code:
    #navigation ul {
    	list-style:none;
    	height: 20px;
    	position: relative;
    	left: 0%;
    	margin: 0;
    }
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Oct 2009
    Location
    USA
    Posts
    40
    Thanks
    15
    Thanked 0 Times in 0 Posts

    Default

    Cool thanks John

    I am also having an aligning problem with my navigation tabs, I would like them centered, I tried aligning the <ul> and <li> but nothing seemed to show.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Replace the styles for these with the ones shown:

    Code:
    #navigation ul {
    	list-style: none;
    	height: 20px;
    	margin: 0; 
    }
    #navigation li {
    	display: inline;
    }
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. The Following User Says Thank You to jscheuer1 For This Useful Post:

    jerdy (10-23-2009)

  6. #5
    Join Date
    Oct 2009
    Location
    USA
    Posts
    40
    Thanks
    15
    Thanked 0 Times in 0 Posts

    Default

    Hi there, it's me again.

    ...Doing some updates on the navigation and still can't get the subjects to center properly on the purple navigation bar.

    I used this code but no luck:

    Code:
    #navigation ul {
    	list-style: none;
    	height: 20px;
    	margin: 0; 
    }
    #navigation li {
    	display: inline;
    }
    I would like the widths on the side (red marks) equal, not different widths.


    Find issue @ www.yogamoves.net/test.html
    Last edited by jerdy; 07-21-2010 at 04:27 AM.

  7. #6
    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 jerdy,

    try adding the highlighted attribute...
    Code:
    
    #navigation ul {
    	list-style:none;
    	margin:0;
            padding-left:14px;
    	height: 20px;
    }
    
    coothead

  8. The Following User Says Thank You to coothead For This Useful Post:

    jerdy (07-21-2010)

  9. #7
    Join Date
    Oct 2009
    Location
    USA
    Posts
    40
    Thanks
    15
    Thanked 0 Times in 0 Posts

    Default

    Worked like a charm, thank you!

  10. #8
    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

    No problem, you're very welcome.

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
  •