lotte Posted July 9, 2008 Share Posted July 9, 2008 Hello,I have a startpage that I use for my pda, and what I would like to do is have the browser automatically change the font-size (just a big bunch of links, no paragraphs or other markup) to fill the whole size of the viewport.Is that possible with css?Thank you! Link to comment Share on other sites More sharing options...
kingsend84 Posted July 9, 2008 Share Posted July 9, 2008 Hello,I have a startpage that I use for my pda, and what I would like to do is have the browser automatically change the font-size (just a big bunch of links, no paragraphs or other markup) to fill the whole size of the viewport.Is that possible with css?Thank you!Just change the number (1px) to change the font size.body{font-size: 1px;} Link to comment Share on other sites More sharing options...
jeffman Posted July 9, 2008 Share Posted July 9, 2008 You can have a set of style rules that apply just to mobiles. But the exact result you discussed would need a javascript routine. Link to comment Share on other sites More sharing options...
rzea Posted July 10, 2008 Share Posted July 10, 2008 Just change the number (1px) to change the font size.body{font-size: 1px;} Totally disagree. Not only is recommended you use ems for your fonts but using a 1px font will not be readable at all.As I said, use ems for your fonts' sizes, start with something just like this:body { font-size:1em;} And don't be afraid to use Javascript, today the people that don't use Javascript are even less then the people that still use IE5, in other words, the amount of people that have Javascript disabled in their browsers is sooooo minimum that is not relevant to consider them anymore when designing a website.Bytes, Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.