View previous topic :: View next topic |
Author |
Message |
PoDg n00b

Joined: 12 Jun 2005 Posts: 12 Location: Adelaide, South Australia
|
Posted: Wed Jan 02, 2008 12:16 am Post subject: Bad CSS in forums |
|
|
After hitting Ctrl-+ every time I visit the Gentoo forums, I decided to have a look at the css.
Shock, horror the font sizes are hard coded in pixels.
I know that the wiki code is not controlled by the website maintainers but could the css be fixed? |
|
Back to top |
|
 |
Suicidal l33t


Joined: 30 Jul 2003 Posts: 959 Location: /dev/null
|
Posted: Wed Jan 02, 2008 1:03 am Post subject: |
|
|
It validates as valid css, with a few minor warnings.
/not a web guy, what is the issue with hard coding? |
|
Back to top |
|
 |
i92guboj Bodhisattva


Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Wed Jan 02, 2008 2:26 am Post subject: Re: Bad CSS in forums |
|
|
PoDg wrote: | After hitting Ctrl-+ every time I visit the Gentoo forums, I decided to have a look at the css.
Shock, horror the font sizes are hard coded in pixels.
I know that the wiki code is not controlled by the website maintainers but could the css be fixed? |
That's not "bad css". In any case, we could argue if that is a bad or a good practice when coding (I think it is better to use pecentages), but it is certainly valid css code as far as I can tell (I haven't validated it myself, but if that is the only problem, then the css is valid). |
|
Back to top |
|
 |
PoDg n00b

Joined: 12 Jun 2005 Posts: 12 Location: Adelaide, South Australia
|
Posted: Sun Jan 13, 2008 4:39 am Post subject: |
|
|
Sorry I took so long to follow up my own post.
What I mean is it's bad practice, not invalid css. All the text in the forums is too small for me to read comfortably because it's set to a (small) fixed pixel size instead of being relative to my default fonts. |
|
Back to top |
|
 |
timeBandit Bodhisattva


Joined: 31 Dec 2004 Posts: 2719 Location: here, there or in transit
|
Posted: Sun Jan 13, 2008 4:50 am Post subject: |
|
|
Set the minimum font size in Firefox to the smallest (in pixels) you can comfortably read. This overrides all CSS scaling, even percentage-based. _________________ Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others. |
|
Back to top |
|
 |
i92guboj Bodhisattva


Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Sun Jan 13, 2008 1:46 pm Post subject: |
|
|
Yes, most browsers can set their own fonts, overriding css.
I usually set it that way, so I can get an adequate font size, regardless of the site I am visiting. In firefox, seamokey and probably most browsers around, control++ and control+- can be used to quickly change the font size as well. |
|
Back to top |
|
 |
|