blindtacos Posted April 4 Share Posted April 4 (edited) Hi there, Having a bit of trouble getting my CSS to work.. I have a 7px border around my site, but to make it work, I've had to force the site to be, at minimum, the full browser height with code as well. Unfortunately, the code for that doesn't take into account the border, and so the page ends up being 14px too long. I've tried changing my code to help (see below), but it does not change the height. body { border:7px solid #e91c1c; } site {height: calc(100vh-14px)} Any suggestions? Site: Website Edited April 29 by blindtacos link changed Link to comment
tuanphan Posted April 7 Share Posted April 7 It looks like you figured it out? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
blindtacos Posted April 7 Author Share Posted April 7 11 hours ago, tuanphan said: It looks like you figured it out? Hi tuanphan, I've got the border working, but the issue is that the page always loads 14px too long, so the bottom border is only visible after scrolling down. I'd love for the height to actually be the size of the window, but it seems that having a border there is throwing off things a bit, and the calculation in my css code does nothing at the moment. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment