Results 1 to 4 of 4

Thread: Webpage Boarder

  1. #1
    Join Date
    Aug 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Webpage Boarder

    Before i attempted to change my code i thought id ask people here since this is a excellent site. Can i leave the table boarder size & use #ff0000 instead of a color name on it. Or am i nt ableto do that with my code? I do want to be able to edit size of it to.

    HTML Code:
    <STYLE>
    body { 
    Border-top: 15px solid darkred;
    border-bottom: 15px solid darkred;
    border-right: 30px solid darkred;
    border-left: 30px solid darkred; }
    body { 
    </STYLE>

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    1) Don't use <style> </style> use <style type="text/css"> </style>.
    2) You've got two body { parts in the style, only use one.
    3) Indent your code please.
    4) Don't capitalize border.
    5) Here's your correct code including with that you asked for:
    HTML Code:
    <style type="text/css">
    body { 
        border-color: #ff0000;
        border-top: 15px solid darkred;
        border-bottom: 15px solid;
        border-right: 30px solid;
        border-left: 30px solid;
    }
    </style>
    Jeremy | jfein.net

  3. #3
    Join Date
    Aug 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    That makes sense but cant I keep the 15px in my code cause that help me adjust the thinkness or size of te boarder ?

  4. #4
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Sorry I've tested the code, and just thought that this would be the best solution:
    Code:
    <style type="text/css">
    body { 
        border-top: 15px solid #ff0000;
        border-bottom: 15px solid #ff0000;
        border-right: 30px solid #ff0000;
        border-left: 30px solid #ff0000;
    }
    </style>
    And what do you mean can I keep the 15px in? Its there already. :/
    Jeremy | jfein.net

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
  •