css position problems

Reply

Join Date: Nov 2004
Posts: 257
Reputation: sam1 is an unknown quantity at this point 
Solved Threads: 1
sam1's Avatar
sam1 sam1 is offline Offline
Posting Whiz in Training

css position problems

 
0
  #1
Feb 19th, 2009
Hi,

I have this in my css file i have said the html to be position:abolute but it doesnt when i minimise. if i say absolute in logo same thing nothing happens and the body comes at the top of logo:
HTML and CSS Syntax (Toggle Plain Text)
  1. html
  2. {
  3. height: 100%;
  4. overflow-x: auto;
  5. position:absolute;
  6.  
  7. }
  8.  
  9. body
  10. {
  11. background: #F0F1F3;
  12. color: #
  13. font-family: Verdana, Tahoma, Arial, Trebuchet MS, Sans-Serif, Georgia, Courier, Times New Roman, Serif;
  14. font-size: 10px;
  15. line-height: 135%;
  16. margin: 0 auto;
  17. padding: 0;
  18. text-align: left;
  19. }
  20.  
  21. #logo {
  22. padding-top: 1em;
  23. height:100%;
  24. margin:0 auto;
  25. padding-left: 28em;
  26. }

Help please!!!!!!
Last edited by sam1; Feb 19th, 2009 at 11:24 am.
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 64
Reputation: cfajohnson is an unknown quantity at this point 
Solved Threads: 13
cfajohnson cfajohnson is offline Offline
Junior Poster in Training

Re: css position problems

 
0
  #2
Feb 22nd, 2009
Originally Posted by sam1 View Post
Hi,

I have this in my css file i have said the html to be position:abolute but it doesnt when i minimise. if i say absolute in logo same thing nothing happens and the body comes at the top of logo:

What does "nothing happens" mean? What does happen? What do you want to happen?

First, check your code with http://validator.w3.org. Once your code is error free, post the URL so we can see what happens.
HTML and CSS Syntax (Toggle Plain Text)
  1. html
  2. {
  3. height: 100%;
  4. overflow-x: auto;
  5. position:absolute;
  6.  
  7. }
  8.  
  9. body
  10. {
  11. background: #F0F1F3;
  12. color: #

Incomplete rule.
HTML and CSS Syntax (Toggle Plain Text)
  1. font-family: Verdana, Tahoma, Arial, Trebuchet MS, Sans-Serif, Georgia, Courier, Times New Roman, Serif;
  2. font-size: 10px;

That's far too small for many people to read. It is better to set the font-size to 100%.
HTML and CSS Syntax (Toggle Plain Text)
  1. line-height: 135%;
  2. margin: 0 auto;
  3. padding: 0;
  4. text-align: left;
  5. }
  6.  
  7. #logo {
  8. padding-top: 1em;
  9. height:100%;
  10. margin:0 auto;
  11. padding-left: 28em;
  12. }
Chris F.A. Johnson
http://cfajohnson.com
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,210
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 165
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: css position problems

 
0
  #3
Feb 22nd, 2009
The height attribute, applied to html and body, is rendered in different ways on different browsers, if it is rendered at all. It is usually NOT the size of the window, but the height of the entire document after rendering.

There is no reliable way to make the document render to the size of the browser window, because there are so many variants of screen resolution, browser type, operating system, and window size.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC