I saw a webpage which does not have a gap between two images placed side by side. I do not know if they used CSS or some sort of programming language to design it.
I believe this is normal behavior, especially in quriks mode. I usually just close gaps between images, so make sure there is no white space between the tags. Make sure you close the space in the middle of those tags in the HTML code.
April 22nd, 2008 at 7:33 pm
padding: 0;
margin: 0;
depends on the div, so for example:
#picture1,
#picture2 {
height: 500px;
width: 500px;
margin: 0;
padding: 0;
}
You can also start your stylesheet off with:
* {
margin: 0;
padding: 0;
}
that will remove all margins and paddings site-wide so you don’t have to keep repeating the margin/padding: 0; stuff.
April 25th, 2008 at 12:57 pm
I believe this is normal behavior, especially in quriks mode. I usually just close gaps between images, so make sure there is no white space between the tags. Make sure you close the space in the middle of those tags in the HTML code.
April 27th, 2008 at 11:54 pm
Removing padding and margins for all html elements is a good idea e.g.
* {
padding: none;
margin: none;
}
but if you simply want to remove padding and margins from all images, put ‘img’ instead of the asterisk.
While you’re at it, add ‘border: none;’ to remove the blue border that appears when a hyperlink is put on an image.