Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird padding/margin/gap issue in column #3051

Closed
RideTheTides opened this issue Aug 19, 2013 · 5 comments
Closed

Weird padding/margin/gap issue in column #3051

RideTheTides opened this issue Aug 19, 2013 · 5 comments

Comments

@RideTheTides
Copy link

@RideTheTides RideTheTides commented Aug 19, 2013

Hello,

Currently prototyping out a website with foundation 3. Can't seem to find where the this 2px gap is coming from.

The image of the girl is 422 px tall. The row/column is then is adding 2 px to make it 424 px tall for some reason.

I can't seem to find where these two pixels are coming from? Any help would be greatly appreciated as I've searched through and can't find a similar issue. Before I had the image at 420px tall and that made the column 422px tall, so 2px are being added.

Live site: www.ridethetides.com/contract/

screen shot 2013-08-19 at 11 41 10 pm

screen shot 2013-08-19 at 11 44 01 pm
screen shot 2013-08-19 at 11 43 19 pm

@Motifsky
Copy link

@Motifsky Motifsky commented Aug 19, 2013

perhaps because of this foundation row rule ?

.row::before, .row::after {
content: " ";
display: table;
}
@RideTheTides
Copy link
Author

@RideTheTides RideTheTides commented Aug 19, 2013

Thanks for the quick reply. I guess its hard to tell as I'm not really sure what that code means, but when I turn that CSS off in Safari inspector it breaks the entire website.

If that is the cause, I guess my next question would be: Is there a way to shift that image down 2px to compensate? Would really like there to be no gap

@Motifsky
Copy link

@Motifsky Motifsky commented Aug 19, 2013

You have a class of ".bottom" applied to the image, simply modify that to--> margin-bottom: -2px;

On Aug 19, 2013, at 8:16 AM, RideTheTides notifications@github.com wrote:

Thanks for the quick reply. I guess its hard to tell as I'm not really sure what that code means, but when I turn that CSS off in Safari inspector it breaks the entire website.

If that is the cause, I guess my next question would be: Is there a way to shift that image down 2px to compensate? Would really like there to be no gap


Reply to this email directly or view it on GitHub.

@RobertinoValue
Copy link

@RobertinoValue RobertinoValue commented Aug 19, 2013

Specify display: block; on the <img> tag.

@RideTheTides
Copy link
Author

@RideTheTides RideTheTides commented Aug 19, 2013

Thanks RobertinoValue, that fixed it. Really appreciate it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.