Welcome visitor
* Login
* Register
It is currently May 23rd, 2019, 8:46 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 3 posts ] 
Author Message
  GET rid of all the UNWANTED margin spaces
PostPosted: February 6th, 2009, 11:07 pm 
User avatar

Posts: 52
how can i avoid every object from having a default space or border aroun it? :x


Top
 Profile  
 
  Re: GET rid of all the UNWANTED margin spaces
PostPosted: February 7th, 2009, 12:16 am 
User avatar

Posts: 63
well it will depend on the object that has the "undesired" spaces. For example, if it is a table you need to use this
<table cellpadding="0" cellspacing="0">
if it is all the page, and this is according to screen margins, use this before the body tag
<style type="text/css">
  html, body {
    margin: 0;
    padding: 0;
</style>
and so on... So identify the object that is giving you the issue and then modify the margin and/or padding attribute.


Top
 Profile  
 
  Re: GET rid of all the UNWANTED margin spaces
PostPosted: February 13th, 2009, 5:59 am 
User avatar

Posts: 29
You can start your style sheet using:

* {
   margin: 0;
   padding: 0;
}

This way EVERY tag in your HTML document will have a default value of 0 for margins and paddings.

Remember to place it in the very beginning of your style sheet, so you can assign custom margin/padding values to your elements after that.

REGARDS

_________________
Ooh, I love your magazine. Especially the 'Enrich Your Wordpower' section. I think it's really...really... really...good.
- Homer Simpson


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