473,396 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

HTML CSS - how to have a transparent border around a list

I have the following code, which you can paste into an html file and try. In IE, a border appears around the selection box. How do I make the border around the selection box transparent, or have no border?

When I try in Firefox, I don't see a border but I see a scrollbar on the right. How do I get rid off that?

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
body {margin: 0; padding: 0; background-color: black;}
.content {width: 800px; text-align: center; border: 1px solid black;}
.selectstyle {width: 100px; font-family: comic sans MS, helvetica; font-size: 12pt; border-style: none; border-color: black; border-width: 0px 0px 0px 0px; color: red; background-color: black; margin: 0px}
</style>
<body>
<form>
<table align="center">
<tr>
<td>
<select name="fruitkey" width="100" size="6" class="selectstyle">
<option selected value="1">apple
<option value="2">orange
</select>
</td>
</tr>
</table>
</form>
</body>
</html>
May 23 '07 #1
1 3907
AricC
1,892 Expert 1GB
I have the following code, which you can paste into an html file and try. In IE, a border appears around the selection box. How do I make the border around the selection box transparent, or have no border?

When I try in Firefox, I don't see a border but I see a scrollbar on the right. How do I get rid off that?

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
body {margin: 0; padding: 0; background-color: black;}
.content {width: 800px; text-align: center; border: 1px solid black;}
.selectstyle {width: 100px; font-family: comic sans MS, helvetica; font-size: 12pt; border-style: none; border-color: black; border-width: 0px 0px 0px 0px; color: red; background-color: black; margin: 0px}
</style>
<body>
<form>
<table align="center">
<tr>
<td>
<select name="fruitkey" width="100" size="6" class="selectstyle">
<option selected value="1">apple
<option value="2">orange
</select>
</td>
</tr>
</table>
</form>
</body>
</html>
Have you tried just using style="border: 0px "?
May 24 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: TinyTim | last post by:
I'm a newbie at ASP & HTML. It seems that when you use server side code and you're going to return a customized HTML form with several fields and labels, you have to do an extensive amount of...
6
by: Danny Lesandrini | last post by:
I'm using an Access database to drive a web site and the colors of various table backgrounds are stored in Access. I want users of the Access database to be able to select colors for the site, but...
4
by: tshad | last post by:
I have some transarent gifs (actually PNG files) that are not working in IE. They work fine in Netscape and Mozilla. In IE the following shows a grey border around the figure (which should be...
2
by: Matthew | last post by:
I created a transparent form, but the text in my label has a black border around it. I created a new form with a label with the text color "red" and the background color of "Transparent." I added...
3
by: Nik | last post by:
I have been trying base my site on the Ruthsarian Lab's layout at http://webhost.bridgew.edu/etribou/layouts/skidoo/demos/tweak_01.html This design is in xhtml, whereas I would prefer to have my...
3
by: synergy_711 | last post by:
I feel like this should be fairly easy but I have been struggling with this for sometime. I have not been able to find someone who's had the same problem as mine yet. ...
1
by: since | last post by:
I figured I would post my solution to the following. Resizable column tables. Search and replace values in a table. (IE only) Scrollable tables. Sortable tables. It is based on a lot...
2
by: davidson1 | last post by:
Hai friends..for menu to use in my website..i found in one website....pl look below website.... http://www.dynamicdrive.com/dynamicindex1/omnislide/index.htm i downloaded 2 files.... ...
19
by: david.karr | last post by:
If in my CSS I set the "background-color" property on the "body" element, it only covers the background of the elements defined in the body, up to the current width and height of the page. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.