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
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.

Link to comment
Share on other sites

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!

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.