Roadwolf Posted September 14, 2023 Share Posted September 14, 2023 For my site (http://site.roadwolf.ca) I have been trying to figure out why the header is limited to a specific width? The rest of the page auto sizes to whatever size the width of the screen is. But the header does not, and justifies to the left, leaving a white space on the right if the window / page is zoomed out enough. I can't seem to find this setting in the css files. Has anyone encountered this? Link to comment Share on other sites More sharing options...
ottogal Posted September 14, 2023 Share Posted September 14, 2023 In your CSS you have .uk-container { display: flow-root; box-sizing: content-box; max-width: 1200px; /* <<<< */ } That's the culprit. 1 Link to comment Share on other sites More sharing options...
AndZyk Posted September 15, 2023 Share Posted September 15, 2023 Actually you should leave the styling of the uk-container untouched, because that it is a necessary UIkit class. You can get the container to be full width by adding the class uk-container-expand. <div id="masthead" class="uk-container uk-container-expand"> 2 Link to comment Share on other sites More sharing options...
Roadwolf Posted September 21, 2023 Author Share Posted September 21, 2023 Thank you! AndZyk's suggestion seemed to work best. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now