Welcome visitor
* Login
* Register
It is currently January 17th, 2019, 12:34 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 4 posts ] 
Author Message
  Remove white margin around this Div
PostPosted: November 11th, 2009, 7:34 pm 

Posts: 17
What is the code to remove the white margin for a div with this style?
<style type="text/css">
  html{height: 100%;}
  body{height: 100%;}
  #fry{width: 100%; height: 100%; background-color: #25a}
</style>

And of course the div tag is this:
<div id="fry">fry</div>


Top
 Profile  
 
  Re: Remove white margin around this Div
PostPosted: November 12th, 2009, 3:53 am 
User avatar

Posts: 63
Add this to the -style- tag:
*{margin: 0px; padding: 0px}


Top
 Profile  
 
  Re: Remove white margin around this Div
PostPosted: November 12th, 2009, 4:20 am 

Posts: 17
Thank you, but that removed the margin and I just want to give it the same color that the div has.


Top
 Profile  
 
  Re: Remove white margin around this Div
PostPosted: November 12th, 2009, 4:53 am 
User avatar

Posts: 63
As in your first post you said
lulla_bell wrote:
What is the code to remove...
anyone would give the previous answer...

If you just want to paint it try this styles
<style type="text/css">
  body, html{height: 100%; background-color: #25a}
  #fry{width: 100%; height: 100%; background-color: #25a}
</style>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron