Ask Your Question
4

CSS should not use fixed width for elements with localizable text

asked 2012-08-05 03:29:30 -0500

Zahid gravatar image Zahid
163 3 2 13
http://bibidho.com/

updated 2012-08-05 23:54:21 -0500

I see lots of cosmetic bugs. By checking I found that most of the elements are of fixed width. It is a bad practice actually. Let say about button Ask you question if I use my locale translation it cut-off. It is because of css fixed width. same for fixed height also.

Need to maintain it by css padding and margin.

As per Evegeny's comment, I'm attaching a screenshot. But actually lots of problem in other pages also. This make such a great app ugly :( image description

See highlighted area with red rectangle.

delete close flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-08-05 11:55:09 -0500

Evgeny gravatar image Evgeny flag of Chile
11074 50 84 182
http://askbot.org/

It's fixed width to make the button look as wide as the column below - for the same cosmetic reasons.

You can create a fix for your language using the "lang-..." class on the body, which is added automatically.

link publish delete flag offensive edit

Comments

It is fine that top ask you questions are fixed width. But I have seen lots of other elements arround with fixed width.

Does askbot provide any setting to set lang property in html body?

Thanks again!

Zahid ( 2012-08-05 12:07:10 -0500 )edit
1

The language code is automatically set as class name on the "body" tag - take a look in the html source. I agree that most elements should not have fixed width - let me know which you find problematic.

Evgeny ( 2012-08-05 12:21:33 -0500 )edit

I have attached a screenshot with a cosmetic-error.

Zahid ( 2012-08-05 23:54:52 -0500 )edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow
1 follower

subscribe to rss feed

Stats

Asked: 2012-08-05 03:29:30 -0500

Seen: 61 times

Last updated: Aug 05 '12