liamloveslearning Posted July 6, 2008 Share Posted July 6, 2008 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 Thanks anyone! Quote Link to comment https://forums.phpfreaks.com/topic/113494-solved-css-p-positioning/ Share on other sites More sharing options...
TheFilmGod Posted July 7, 2008 Share Posted July 7, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/113494-solved-css-p-positioning/#findComment-583172 Share on other sites More sharing options...
liamloveslearning Posted July 7, 2008 Author Share Posted July 7, 2008 ahh so my css would be something like .contentblahhh { margin: 0 auto 0 auto; } Quote Link to comment https://forums.phpfreaks.com/topic/113494-solved-css-p-positioning/#findComment-583361 Share on other sites More sharing options...
liamloveslearning Posted July 7, 2008 Author Share Posted July 7, 2008 sorry, also what is the point in floating an object? wouldnt that throw everything else out of line? ??? Quote Link to comment https://forums.phpfreaks.com/topic/113494-solved-css-p-positioning/#findComment-583363 Share on other sites More sharing options...
dbrimlow Posted July 7, 2008 Share Posted July 7, 2008 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! Quote Link to comment https://forums.phpfreaks.com/topic/113494-solved-css-p-positioning/#findComment-583805 Share on other sites More sharing options...
liamloveslearning Posted July 7, 2008 Author Share Posted July 7, 2008 thanks bud ! Quote Link to comment https://forums.phpfreaks.com/topic/113494-solved-css-p-positioning/#findComment-583934 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.