Results 1 to 3 of 3

Thread: help with css

  1. #1
    Join Date
    Nov 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default help with css

    hello, i am new in this, how can i make css as the image, fixed width 700 px

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    not really clear what you mean but maybe
    #content {
    width:700px;
    }
    That will make a div named content 700 pixels wide if you want a height you can use height:$xpx; where as $x will be a value to be the height.
    If thats what you want don't know what you mean by image.

  3. #3
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Quote Originally Posted by bluewalrus View Post
    [...]don't know what you mean by image.
    He/She means the attached image.

    @Disa:
    Here are the basics of what you want:

    HTML code:
    HTML Code:
    <div id="wrapper">
      <div id="header">Header</div>
      <div id="content">Content</div>
      <div id="footer">Footer</div>
    </div>
    CSS code:
    Code:
    div div {
    	background-color:#eeeeee;
    	margin:5px;
    	border: 1px solid #999999;
    }
    #wrapper {
    	margin:auto;
    	width:700px;
    	text-align:center;
    }
    #header {
    	height:30px;
    }
    #content {
    	height:500px;
    }
    #footer {
    	height:30px;
    }
    Good luck!

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
  •