Jump to content

[SOLVED] css-p ? positioning


liamloveslearning

Recommended Posts

Hey everyone, I've just watched this vid tut on how to position content using css rather than tables (as ive had a lot of people telling me I should be using this method); the video is here "

 

Now the guy in the vid is saying I use AP Divs; and that you set its position using the css elements; hes using px's to depict (sp?) the contents position but one thing that gets me is how do you get it bang in the centre? also if It was centred on my resolution would it not be different on somebody else's screen? i apologize if this is a really amateur question but I really need to understand this  :P

 

Thanks anyone!

Link to comment
https://forums.phpfreaks.com/topic/113494-solved-css-p-positioning/
Share on other sites

margin: 0 auto 0 auto;

 

This translates to:

 

Margin top/bottom: 0px

Margin left / right = auto = center!

 

You can also float things. In a way, this is the opposite of centering, since it "pushes" a block (div) to the right or left. ie. float: left;

 

It gets complicated, so be vary.

Take a browse here: http://css.maxdesign.com.au/

 

This site, while a little dated, helped many of us when we first started using CSS.

 

The floatutorial will give you a beginner's eye view of the beauty of floating elements.

 

The selectutorial is a must learn to understand the rules and how/whys of css.

 

And what can be accomplished using lists is mind-boggling!

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.