CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   HTML & CSS (http://www.codingforums.com/forumdisplay.php?f=13)
-   -   Aligning with css (http://www.codingforums.com/showthread.php?t=283450)

Jak1471 12-03-2012 12:27 PM

Aligning with css
 
Afternoon all,

New here and im not great with html or css so bare with me. I'm trying to make a simple page with several images that align across the page but when viewed on a mobile browser align vertically. What is the best way to do this? Can I do this with css positioning or will i have to load seperate css files? Have a look: http://applebandits.co.uk/testing

Sorry if you don't get what I mean.
Cheers

backa 12-03-2012 01:52 PM

Looks like you've got the idea, just not selecting elements correctly. instead of attaching the class to <p>, it should be in the <img> tag. also rather use an id instead of class, unless you intend to use those same stylings elsewhere. so in the css you'll have #pos_one instead of .pos_one, and in the html <img id="pos_one"...>

Jak1471 12-03-2012 05:05 PM

Quote:

Originally Posted by backa (Post 1296848)
Looks like you've got the idea, just not selecting elements correctly. instead of attaching the class to <p>, it should be in the <img> tag. also rather use an id instead of class, unless you intend to use those same stylings elsewhere. so in the css you'll have #pos_one instead of .pos_one, and in the html <img id="pos_one"...>

Thanks for that! Ok ill give it a try... What's the best way of setting the positioning though? Because in needs to be responsive to the browser size, any ideas?

Cheers


All times are GMT +1. The time now is 10:55 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.