Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 05-31-2005, 08:52 AM CSS Question
JohnJ's Avatar
Extreme Talker

Posts: 198
Location: Raleigh, NC
Trades: 0
If I add the following to <body> I can align my page to occupy the full screen in IE, Netscape, Opera and Firefox - - leftmargin="0" topmargin="0 " rightmargin="0"

However

If I add the following in CSS it does not work.
html, body { margin: 0; padding: 0; }

What am I missing?

Thanks JJ
__________________
JohnJ

Please login or register to view this content. Registration is FREE

WebImages Inc. - Raleigh NC
JohnJ is offline
Reply With Quote
View Public Profile Visit JohnJ's homepage!
 
 
Register now for full access!
Old 05-31-2005, 10:31 AM
numbenator's Avatar
Webmaster Talker

Posts: 516
Location: London
Trades: 0
you must use px

html, body { margin: 0px; padding: 0px; }

I think anyway.

just tested and works fine with or without px :
(IE and firefox)
code used :

<style>

html, body { margin: 0; padding: 0; }


</style>
<body>
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
__________________

Please login or register to view this content. Registration is FREE

Last edited by numbenator; 05-31-2005 at 10:36 AM..
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
Old 06-01-2005, 08:55 AM Using Style Sheet
JohnJ's Avatar
Extreme Talker

Posts: 198
Location: Raleigh, NC
Trades: 0
numbenator - Thanks for your response

Sorry - - I wasn't clear in my first question.

You are correct - - the code works correctly if used inline as you posted in your reply, however it does not work in an external stylesheet that is called in a link statement.

Any additional assistance would be appreciated.

JohnJ
__________________
JohnJ

Please login or register to view this content. Registration is FREE

WebImages Inc. - Raleigh NC
JohnJ is offline
Reply With Quote
View Public Profile Visit JohnJ's homepage!
 
Old 06-01-2005, 03:20 PM
Experienced Talker

Posts: 46
Trades: 0
JohnJ, the code numbenator posted should work inline or with a linked style sheet? Perhaps it's a caching issue that's making it appear not to. Try dumping your browser cache or add a ?qwert to the end of your URL to force a full refresh.

Example: www.YourDomain.com/page.html?qwert

HTH,
Scott Bannon
__________________
Take control of your Niche Sites & Parked Domains to earn
Please login or register to view this content. Registration is FREE
you deserve!
scott bannon is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to CSS Question
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13088 seconds with 12 queries