SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Enthusiast
    Join Date
    May 2006
    Location
    UK
    Posts
    95
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    css help - how to close this box

    hi i am building a site using mainly css for the first time,
    my main content box is fine but to the left i have a sidebar menu and the box is open, anyone know how i close this please?
    i also want to create the same type of box but a long horiztonal one across the bottom, any help with how i do that too would be greatly appreciated

    thank you

    (can be seen on this page)

    http://www.cgwebdesigns.co.uk/oldstuff/index.html

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,200
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    Are you sure that's the right link? It throws an error for me.

  3. #3
    SitePoint Enthusiast
    Join Date
    May 2006
    Location
    UK
    Posts
    95
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    and this is the css doc http://www.cgwebdesigns.co.uk/oldstuff/style.css

    thanks

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,200
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    These days, you are much better off doing away with the background images and using a border around your boxes, with the addition of border-radius. E.g.

    Code:
    #leftmenu {
      background: #fff;
      border: 5px solid #420000;
      border-radius: 10px;
      width: 204px;
      float: left;
    }
    You can then do away with the background images, unnecessary divs etc. Much cleaner.

  5. #5
    SitePoint Enthusiast
    Join Date
    May 2006
    Location
    UK
    Posts
    95
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thats much better, thank you for your help

  6. #6
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,200
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    You're welcome. I could go into why the border image method wasn't working, but really, it's so much nicer to use the border/rounded corner method that it's not worth it.


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
  •