wrim
New Member
Posts: 19
inherit
99943
0
Nov 8, 2018 20:27:50 GMT -8
wrim
19
March 2007
wrim
|
Post by wrim on Oct 2, 2018 2:11:26 GMT -8
umeaairsoft.boards.net/board/29/airsoft-townI want the bottom image of the header to be flush with the Category bar of the board but I can't find the padding that controls it. The distance is 3px but I can't find the line of code. Maybe the bottom padding of the Header is 1px and the top padding of the Category bar is 2px or something like that? Sorry for the noob question.
|
|
#eb7100
33409
0
1
Nov 13, 2024 16:56:46 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Oct 2, 2018 9:54:59 GMT -8
Hi, wrim . This actually has to do with how the browser treats spacing following a line of inline elements (such as text and images) rather than the margins of the elements around your images. I can actually demonstrate this within a post. Here's two images on top of one another. You'll notice there's a gap between them because of how lines are spaced. Now watch what happens when I place them inside of an element with a font size of 0. The gap disappears because when the font size is 0 the space between lines is also 0. With that in mind the easiest solution is to surround your image with a div element that has a font size of 0 which will tell the browser not to add a margin below the line your image is contained on.
|
|
wrim
New Member
Posts: 19
inherit
99943
0
Nov 8, 2018 20:27:50 GMT -8
wrim
19
March 2007
wrim
|
Post by wrim on Oct 2, 2018 13:30:50 GMT -8
Thank you so so much for the help and the explanation!
|
|