Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bad CSS in forums
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Forums Feedback
View previous topic :: View next topic  
Author Message
PoDg
n00b
n00b


Joined: 12 Jun 2005
Posts: 12
Location: Adelaide, South Australia

PostPosted: Wed Jan 02, 2008 12:16 am    Post subject: Bad CSS in forums Reply with quote

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
View user's profile Send private message
Suicidal
l33t
l33t


Joined: 30 Jul 2003
Posts: 959
Location: /dev/null

PostPosted: Wed Jan 02, 2008 1:03 am    Post subject: Reply with quote

It validates as valid css, with a few minor warnings.

/not a web guy, what is the issue with hard coding?
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Wed Jan 02, 2008 2:26 am    Post subject: Re: Bad CSS in forums Reply with quote

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
View user's profile Send private message
PoDg
n00b
n00b


Joined: 12 Jun 2005
Posts: 12
Location: Adelaide, South Australia

PostPosted: Sun Jan 13, 2008 4:39 am    Post subject: Reply with quote

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
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2719
Location: here, there or in transit

PostPosted: Sun Jan 13, 2008 4:50 am    Post subject: Reply with quote

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
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Sun Jan 13, 2008 1:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Forums Feedback All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum