IE 8 css problem

Discuss the many weaknesses of browser security and ways to mitigate the threat

IE 8 css problem

Post by atticus on Mon Jul 05, 2010 2:45 am
([msg=41284]see IE 8 css problem[/msg])

Hi guys,

I am having a css problem in IE 8. The code below runs on FF without a problem. However it seems that in IE 8 the css style is not applied to the select element.
Do you know what could cause the problem in IE 8? I want it to be compatible with both browsers.

Here's the code:

Code: Select all
<html>
<body>
   <style type="text/css">
   .highlight{
      border-style: solid;
      border-width: 2px;
      border-color: #FF0000;
   }
   </style>
   <table>
      <tr>
         <td>
            <select class="highlight" >
            <option></option>
            <option value="125" >Test1 - Test2</option>
            </select>
         </td>
      </tr>
   </table>
</body>
</html>


Thanks,
atticus
atticus
New User
New User
 
Posts: 1
Joined: Fri Jul 02, 2010 7:07 am
Blog: View Blog (0)


Re: IE 8 css problem

Post by thedotmaster on Thu Jul 08, 2010 10:55 am
([msg=41449]see Re: IE 8 css problem[/msg])

Use a DOCTYPE. Currently your page is running in quirks mode.

http://www.w3schools.com/tags/tag_DOCTYPE.asp <-- get doctype from here
http://validator.w3.org/ <-- validate your page here
Image
User avatar
thedotmaster
Contributor
Contributor
 
Posts: 984
Joined: Sun May 04, 2008 4:39 pm
Location: North West UK
Blog: View Blog (1)



Return to Web

Who is online

Users browsing this forum: No registered users and 0 guests