I do not use conditional comments myself as I have coded a css parser to handle all these differences... but anyhow.. you could try and get Opera looking correct and then use conditional comments as needed for the other browsers. Just a suggestion, I am sure others here will know how to target using conditional comments.

For those that are interested, my parser works like the following:

/* Firefox
h1 {
   color: red;
}
*/
/* Opera
h1 {
   color: blue
}
*/

So it will render as it detects and finds matches, it can match any combination of OS, browser and version, for example:

/* Safari p {color: blue;} */
/* Firefox 2 p {color: red;} */
/* Opera 9.10 Win p {color: pink; }*/

No more hacks or conditional statements for me. And no more problems like Brett is having :)



Brett Patterson wrote:
Hello All,

I am in the process of working on my portfolio. It is not complete yet, but one problem with my navigation menu on the top exists. Although it is a minor pixel alignment in Opera, I cannot, for the life of me, figure out why only Opera is aligning my tabs (which are the top part of my navigation) 1px above the bottom border. If my site is visited in Firefox or Internet Explorer first, you can see that everything aligns perfectly. Is there a way to target Opera specifically? I have used conditional comments, including <!--[if IE]><!--> to <!--[if NN]><!-->.

My site can be seen at http://ttcharriman.edu/TTCH07/iftprojects/brettpatterson/index.html

Can anyone help, please?

--
Brett P.

*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************



*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************

Reply via email to