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

    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
    Jerryville, Tejas
    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
    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
    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).
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

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