Current location: Hot Scripts Forums » General Web Coding » CSS » Flat look


Flat look

Reply
  #1 (permalink)  
Old 08-14-03, 08:35 AM
Godsmack Godsmack is offline
Newbie Coder
 
Join Date: Jul 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Flat look

I have a page which uses CSS in which I put a 1px border around everything to give it a non 3d look. Anyway, I cannot get the dropdown boxes to look like the rest of the fields. Here is the url:

http://test.riegel-online.net/contact/contactus.php

Here is the code I have in the CSS file:

Code:
input {
	font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-size: 12px;
	border: 1px solid black;
}

textarea {
	font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-size: 12px;
	border: 1px solid black;
}

select {
	font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-size: 12px;
	border: 1px solid black;
}
It seems at though the "border: 1px solid black;" is not working for the dropdowns (SELECT). What am I doing wrong?

Randy
Reply With Quote
  #2 (permalink)  
Old 08-18-03, 08:06 AM
nytemare nytemare is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
very odd.. i used a 1px solid border for an <select> element today and it worked fine. maybe it helps to specify the same style which you used for the <select> tag for the <option> tag as well..?

try replacing..

select { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; border: 1px solid black; }

..with..


select, option { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; border: 1px solid black; }
Reply With Quote
  #3 (permalink)  
Old 08-18-03, 11:55 AM
kennethlove666 kennethlove666 is offline
Newbie Coder
 
Join Date: Aug 2003
Location: oklahoma
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
you can only style dropdowns and radiobuttons/checkboxes so far.
they're defined as part of the OS, so they continue to look like the OSs skin/theme/appearance to a large extent.

but, yes, you need to style the option as well as, or even instead of, the select, as the select only applies (i believe) to the dropdown button (which isn't very styleable)
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
prev next links with flat files theamazingTWOeyedman PHP 3 08-26-03 08:50 AM


All times are GMT -5. The time now is 01:34 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.