HighDots Forums  

Select

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Select in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
shapper
 
Posts: n/a

Default Select - 07-21-2008 , 03:14 PM






Hello,

I am trying to style my form inputs, textareas and selects as follows:

input, select, textarea {
border: solid 6px #ECF0F9;
color: #252525;
font: normal 0.75em Verdana, Geneva, sans-serif;
padding: 0.25em;
width: 520px;
}

I am having a few problems:

Firefox 3:

1. The select is narrow than the inputs and textareas;
2. When I click the select the dropdown borders look different ...
some are thinner than others.

IE 7:

1. The select is narrow than the inputs and textareas;
2. The border of the select is not changed.

What am I doing wrong and how can I make the appearance of a Select
look the same across various browsers?

Thanks,
Miguel

Reply With Quote
  #2  
Old   
Christian Kirsch
 
Posts: n/a

Default Re: Select - 07-22-2008 , 03:29 AM






shapper schrieb:
Quote:
Hello,

I am trying to style my form inputs, textareas and selects as follows:

input, select, textarea {
border: solid 6px #ECF0F9;
color: #252525;
font: normal 0.75em Verdana, Geneva, sans-serif;
padding: 0.25em;
width: 520px;
}

I am having a few problems:

Firefox 3:

1. The select is narrow than the inputs and textareas;
2. When I click the select the dropdown borders look different ...
some are thinner than others.

IE 7:

1. The select is narrow than the inputs and textareas;
2. The border of the select is not changed.

What am I doing wrong and how can I make the appearance of a Select
look the same across various browsers?
As far as I know: You can't. And there are even people who say you
shouldn't: users expect the form elements to be consistent across
applications.

BTW: What do you intend to achieve with a width given in pixels, whereas
the font size and padding are specified in em? What happens when the
user increases the font size?



Reply With Quote
  #3  
Old   
David Stone
 
Posts: n/a

Default Re: Select - 07-22-2008 , 09:10 AM



In article <48858c53$0$19922$9b4e6d93 (AT) newsspool1 (DOT) arcor-online.net>,
Christian Kirsch <ck (AT) bru6 (DOT) de> wrote:

Quote:
shapper schrieb:
Hello,

I am trying to style my form inputs, textareas and selects as follows:

input, select, textarea {
border: solid 6px #ECF0F9;
color: #252525;
font: normal 0.75em Verdana, Geneva, sans-serif;
padding: 0.25em;
width: 520px;
}

I am having a few problems:

Firefox 3:

1. The select is narrow than the inputs and textareas;
2. When I click the select the dropdown borders look different ...
some are thinner than others.

IE 7:

1. The select is narrow than the inputs and textareas;
2. The border of the select is not changed.

What am I doing wrong and how can I make the appearance of a Select
look the same across various browsers?

As far as I know: You can't. And there are even people who say you
shouldn't: users expect the form elements to be consistent across
applications.

BTW: What do you intend to achieve with a width given in pixels, whereas
the font size and padding are specified in em? What happens when the
user increases the font size?
Or what happens if they don't have Verdana on their system, and
their browser falls back to Geneva at 75% of the user's preferred
size?


Reply With Quote
  #4  
Old   
Michael Fesser
 
Posts: n/a

Default Re: Select - 07-24-2008 , 04:16 PM



..oO(shapper)

Quote:
I am trying to style my form inputs, textareas and selects as follows:

input, select, textarea {
border: solid 6px #ECF0F9;
color: #252525;
font: normal 0.75em Verdana, Geneva, sans-serif;
padding: 0.25em;
width: 520px;
}

I am having a few problems:

Firefox 3:

1. The select is narrow than the inputs and textareas;
2. When I click the select the dropdown borders look different ...
some are thinner than others.

IE 7:

1. The select is narrow than the inputs and textareas;
2. The border of the select is not changed.

What am I doing wrong and how can I make the appearance of a Select
look the same across various browsers?
Not possible. Every browser has its own way for rendering form controls.
Some use the widgets offered by the operating system, some use their own
widget library, others may even support graphical themes. There's no way
to make form controls appear the same across various browsers/platforms.

Some things can be changed with CSS, though, but you should still expect
a lot of browser differences or poor support for styling form elements.

Micha


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.