Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

HTML and CSS beginner question!

Im a beginner in this, and i really enjoy programming. But there is one problem, that is whenever i try to make my CSS design it wont fit the site of the size.
Example: gyazo.com/2d9072db771351449b71624f1a6bc41b
Can you guys help me?
Can you post some of your code here for us to look at? It might be a bad CSS value for margin or height.
Following here just incase I encounter the same issue.
It looks like you're putting the whole site in a wrapper which is margined to sit in the center and the height has been manually set.
(Feb 16, 2016 03:28 AM)VirtualFrost Wrote:  It looks like you're putting the whole site in a wrapper which is margined to sit in the center and the height has been manually set.

How do i fix this?

gyazo.com/678f98c7a453ac8442841fec4827fa6f
gyazo.com/b7ecf41db98eccc483c83298a90910b7
Your container have a defined width and a margin-left/right set on auto thus it'll automatically be centered on your screen if that was what you mean by "it wont fit the site of the size".
What Hash G. said, because everything is inside the container, it'll resize and fit inside the container size (being 800px).

If you want the nav bars to stretch out but keep the text and content in the middle, the margin-left and right should be placed inside a wrapper div. Try creating another div with the id wrapper and put it after container, see how that goes.
Try also getting rid of the width inside the container.

I'm not to sure about what I've said but let me know.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by HackersSep 28, 2026 01:50 PM 9 364 Sep 28, 2026 01:50 PM
Last Post: JuWacky
by oxagastSep 3, 2022 07:52 AM 0 197 Sep 3, 2022 07:52 AM
Last Post: oxagast
by AerrowsGirlfriendJun 16, 2021 04:17 AM 1 319 Jun 16, 2021 04:17 AM
Last Post: Nachfolger