How do i design for mobile? i seems like every time I look at my website on my ipod, and go through the pages, the width changes. and its really weird!
Seems all out of whack. Your grid system doesn't look right. Nothing aligns left evenly, nothing aligns right evenly. The spaces between the images on your portfolio page don't match or maybe there's too much space.
Just looking at your page tells me you can use 2 page wraps. One for the header and main, the other for the footer.
I'm not referring to 960.gs or anything. Anyway, in your header, the arrow thing should align to the line under it, not stick outside. That tells me something isn't right.
The menu in your footer also displays outside the wrap.
i figured the header one was because of the :after element. but i dont know. The footer one isn't out of the grid because its lining up with the Content. which is Padded as well as the nav. the footer.inside has padding.. okay maybe not (just double checked) but it doesn't seem to exceed the line. maybe there is something seriously wrong. i do hope i can fix it.
couldn't i just position relative :left a little more and it'll fix it? or is there more to that then just Position:relative left:more;
he has a live page - why in the world put it on jsfiddle?
The arrow navigation can be aligned with the line below it simply by adding a right margin of 25px to #navigation, the footer nav can align with the body content with a 12px left margin (and lose the width), the ad can lose the relative positioning, change width to 234 and apply a top margin of -80px. Done.
You could try this site for a quick and dirty look of what your site looks like at different browser sizes. Then adjust your media queries as ChristopherBurton suggested.
For fun, check out "http://css-tricks.com" to see how media queries can adjust the sizes of the content.
oh yeah ahahahaha. my bad man thank you. Id appreciate comments in it aswell please? because im not sure how to set up grid sys. (i know not 960, but just saying in General) have a good night.
Create your HTML site with 100% and use below 2 meta's in your page head tag, so width will be adjusted with your device(iPhone, android, black berry or iPad).
I apologize, I simply forgot. I would implement what wolfcry has suggested. I'm not sure it would be beneficial to you if I made design changes with my own style. There's nothing you would learn from that.
WOW! @wolfcry911 really worked. i never knew the relative position would be the thing that messed it up. thank you. i guess i have some reading to do. Thank you very much.
ohhh okay im sorry. haha im just so used to saying it uft.lol ill change it now haha.
okay, so changed it to utf-8. and refreshed it a few times on ipod. design change didn't .. change. (i need to get better at wording my issues) but one thing i noticed in the ipod version. because i removed the 960px width of the footer, the black coloring only goes until the end of the right edge in the browser before beginning the horizontal scroll
AND THEN! changes when turned onto its side thats pretty neat.
Hey Attila, have you tried checking your CSS to see why changing the html width to 100% isn't making a difference? Try looking at the width of the wrapper element and then maybe it'll make sense!
worked for a bunch of elements. now im thinking, can't i just make a seperate stylesheet for mobile devices? and link that to ALL MOBILE DEVICES? or is that not posible?
like theirs some things that will work. and some that wont. such as if i make the header bottom-border:red. it will work. but for some reason i have removed the nav:before arrow. and removed the floating. but it still floats right and the arrow is STILL THERE
it passes the nav. because i deleted that for the ipod.
and here's the index.php Link to that stylesheet.css
<link rel="stylesheet" type="text/css" media="only screen and (max-width: 480px), only screen and (max-device-width: 480px)" href="small-device.css" />
Why not just use media queries and only pass the parts that you need to make the website work for the mobile device instead of using all the same code again? If you only want to call a mobile phone you could use..
http://attilahajzer.host-ed.net/
id love a screen cast about MOBILE designing.
Also, you should get rid of the horizontal overflow, the scrollbar is hideous.
Responsive Web Design
Done. if you go back to the site, you can refresh the page :)
Just looking at your page tells me you can use 2 page wraps. One for the header and main, the other for the footer.
The menu in your footer also displays outside the wrap.
couldn't i just position relative :left a little more and it'll fix it? or is there more to that then just Position:relative left:more;
The arrow navigation can be aligned with the line below it simply by adding a right margin of 25px to #navigation, the footer nav can align with the body content with a 12px left margin (and lose the width), the ad can lose the relative positioning, change width to 234 and apply a top margin of -80px. Done.
For fun, check out "http://css-tricks.com" to see how media queries can adjust the sizes of the content.
it looks realllly messed up lol but im sure you can fix that. its cause php is injected.
Create your HTML site with 100% and use below 2 meta's in your page head tag, so width will be adjusted with your device(iPhone, android, black berry or iPad).
Let it try :)
will do it?
check it out: http://attilahajzer.host-ed.net/
and when im looking at my website in my iPod Touch for some reason my letters are doubling. and its only my H1.
HEADER
and it didn't change anything chris.
still is massive on ipod. and.
It may not change anything at this point but it's correct and will also allow me to validate your code.
okay, so changed it to utf-8. and refreshed it a few times on ipod. design change didn't .. change. (i need to get better at wording my issues)
but one thing i noticed in the ipod version. because i removed the 960px width of the footer, the black coloring only goes until the end of the right edge in the browser before beginning the horizontal scroll
AND THEN! changes when turned onto its side thats pretty neat.
http://www.alistapart.com/articles/responsive-web-design/
such as if i make the header bottom-border:red. it will work. but for some reason i have removed the nav:before arrow. and removed the floating. but it still floats right and the arrow is STILL THERE
and refresh (ipod)
here's that entire code.
it passes the nav. because i deleted that for the ipod.
and here's the index.php Link to that stylesheet.css
Also this is pointless
i have removed it from the small-device.css.
but for some reason, its still shows on the ipod. it doesn't make sense.
Why not just use media queries and only pass the parts that you need to make the website work for the mobile device instead of using all the same code again? If you only want to call a mobile phone you could use..