www.webdeveloper.com
Results 1 to 4 of 4

Thread: What is the css code for width height of web page parameters?

Hybrid View

  1. #1
    Join Date
    Mar 2006
    Posts
    540

    What is the css code for width height of web page parameters?

    Hi, searched google with correct keywords and nothing comes up. What is the css code and example numeric value please for setting web page width and height? I will insert my own numeric value where you place your example numeric value. Thanks! Ri.

  2. #2
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    One way would be body, html {width:600px; height:500px; } but the more common approach is to put a wrapper div just inside the body tags and set that div size and positioning accordingly.
    "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan

  3. #3
    Join Date
    Mar 2006
    Posts
    540
    Thanks Ray, I inserted the code exactly how you gave it above on a css blank web page and when I used preview to see how the web page looks it is showing the code. Is this code correct because it isn't making it invisible. Ri.

  4. #4
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,330
    The code has to go within <style type="text/css">...</style> tags within the <head> section of your document (or within an external stylesheet linked to by your page).
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles