Hi, As i said, i am unable to cancel out the padding that comes after the <body> tag. For example consider the below code: <html> <head> <title>asd</title> <style> #header{height:100px; width:780px; background-color:red;} </style> </head> <div id="header"></div> <body> </body></html> After saving this as html file, one can see that the header section has got an automatic padding from all sides. Can anyone tell me how do i cancel this out? I want the design to be continuous, not as if it has been pasted on some other background Regards
That is the first 4 lines of every stylesheet I create. creative_007, I cancels out the default margin and padding of every element of your design. If you just wanted to cancel out the margin of your body then the below code would have done that; body { margin:0px; }
it doesnt exactly cancel it out though.... its just sets every margin and padding that isnt specifically set to 0 so if further down you specifically state a certain div to have a padding:4px; for example - then it will get that padding