Welcome visitor
* Login
* Register
It is currently November 18th, 2019, 5:48 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  margins
PostPosted: July 14th, 2009, 12:17 am 

Posts: 19
Im using a div with its width and height at 100%. Because of the defaults margins there appeared the scrollbars, so i removed the margins adding this css
*{margin: 0px; padding: 0px}

That works as a charm for all 3 margins except for the left side one, cause im using a background and i need all the content to have a 10px margin but only on the left side. Can you show me how to do it without having the scrollbars back again?

Thanks everybody for your help.


Top
 Profile  
 
  Re: margins
PostPosted: July 14th, 2009, 12:43 am 
User avatar

Posts: 81
check your code, should be something like this
<style type="text/css">
*{margin: 0px; padding: 0px}
body, html{height: 100%}
#wrapper{
margin-left: 10px;
width: 100%;
height: 100%;}
</style>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 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