SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2004
    Location
    Brazil
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Using Borders in <div>s

    Hello,

    I want to create a site using some boxes in a cool graphic way, so they can have text inside, something like links or news... But the question is: Do i need to specify all borders, i mean border-left, right, etc, or I can only use the full graphic as a background for the <div> in case it would be a leftnav div.

    Hope I could explain it well, if not Ill try again and maybe with some code if necessary.

    Thanks!

  2. #2
    SitePoint Wizard rbutler's Avatar
    Join Date
    Jul 2003
    Location
    Springfield, MO
    Posts
    1,867
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not sure if this will help since I'm not sure if I understand right but you wouldn't have to specify border-left, border-right, use shorthand syntax when dealing with border property. Something like:

    Code:
    #mainbox{
        border: 1px solid #000;
    }
    Code:
    <div id="mainbox">
    Content here with a border all the way around
    </div>
    This will give your div a border all the way around, unless you only want a left or right border. Graphic would probably work too, I just don't understand what you're saying in regards to it
    Ryan Butler

    Midwest Web Design


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
  •