wbmkk
New Member
Hello, I am new to HTML etc so hope you can help.
I'm designing a web page and will design with a1024px wide screen as my default, allowing a bit of space of course around the edge.
I want to create a 'container' for ALL sections of the site, which will automatically align to the centre, but am a bit stuck.
I opted to have the body 100% wide, so this will then provide a hint of colour no matter how wide the container etc is. I wanted this container to be central, no matter how wide the screen resolution is.
I read somewhere that the postion property only works if the parent has position relativr, so did this for the body, but still no luck
I tried float, left and margin options, but still can't get the container to centrtalise.
Any help would be appreciated
Regards !
I'm designing a web page and will design with a1024px wide screen as my default, allowing a bit of space of course around the edge.
I want to create a 'container' for ALL sections of the site, which will automatically align to the centre, but am a bit stuck.
I opted to have the body 100% wide, so this will then provide a hint of colour no matter how wide the container etc is. I wanted this container to be central, no matter how wide the screen resolution is.
I read somewhere that the postion property only works if the parent has position relativr, so did this for the body, but still no luck
I tried float, left and margin options, but still can't get the container to centrtalise.
Any help would be appreciated
Regards !