Hacker News new | past | comments | ask | show | jobs | submit login

Sorry I haven't done that already. I should soon though, because I'm finally getting an iPhone.



About time!

It's actually really nice to surf on the iPhone, I hit up several sites on my phone when I'm out of the home/office.

But Y!Hacker isn't on the list because of that issue. Not sure how you are going to deal with it though, different style sheet for iPhone users?


Style sheet? What's that?


<meta name="viewport" content="width=640, height=800" />

This is a good start... The iPhone defaults to a pretty large viewport which makes text small, and lots of zooming, scrolling. The meta above just tells it to not create such a large virtual screen.


Stylesheets (called CSS) are the ways of changing the way HTML is presented with a browser. The idea was that HTML would be for document mark-up, while CSS would be for how that mark-up would be formatted (although that idea isn't ever really followed).

You seem to have a news.css, though, so I guess you must've just missed the terminology? That's a stylesheet.

You can just create a separate one which will be used whenever the browser is the iPhone browser, and that would change the entire page such that it's easily viewable and usable on an iPhone. (Change the margins, the view-port, the font sizes, maybe colors if necessary, etc).


PieSquared, pg knows what a style sheet is. He was making a joke.


A HN classic. I hope Pie was also joking :)


Oops. Guess I should've made that clearer.


el O el.


Wait. No way. Really?

checks source

Wow.





Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: