?
Solved

How do I make left navigation bar height differences compatible in IE vs FF, also how to style jump menu (not finished on page)

Posted on 2008-10-19
4
Medium Priority
?
242 Views
Last Modified: 2012-05-05
How do I make the length of the left navigation area even with the photo and right side news area compatible for IE7 and FF2?   I would really rather not have to create a different CSS for each browser!
Test site is at http://www.wsdgmedia.com/ccpetest/template.html, css is attached.

I know I mixed tables and CSS, but was requested to do so.  

Also, on this same file, I want to style the jump menu to coordinate with the rest of the site. So the drop down button, the borders of the box, etc.


ccpe-css.txt
0
Comment
Question by:cjceer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 8

Accepted Solution

by:
eszaq earned 1000 total points
ID: 22759561
If you want your CSS clean, you HAVE to create separate CSS file for IE. Do not create complete CSS file, just a small one with a few fixes. Actully, you have to create two new css files - one more for IE6 with additional fixes (IE6 is still used a lot and is much buggier then IE7).  Use syntax readable by IE browsers only:

<link href="styles/ccpe.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<link href="styles/ie.css" rel="stylesheet" type="text/css" />
<![endif]-->
<!--[if IE 7]>
<link href="styles/ie6.css" rel="stylesheet" type="text/css" />
<![endif]-->

These stylesheets will be ignored by Firefox as it will see the code as HTML comments. Make sure to call CSS files in this order. So declarations in CSS targeting IE override declarations in main stylesheet.
0
 

Author Comment

by:cjceer
ID: 22760740
Can you recommend a good resource to make the CSS files compatible per browser as you have outlined?  

0
 
LVL 8

Assisted Solution

by:eszaq
eszaq earned 1000 total points
ID: 22763030
You can start here:
http://www.webcredible.co.uk/user-friendly-resources/css/internet-explorer.shtml
http://www.positioniseverything.net/explorer.html
Google search for 'css IE bugs' will bring you a boatload of links.

Also, you can search for 'css hacks', but using hacks results in messy CSS that you can get lost in. So, use of additional CSS files for IE is better - clean and easy to keep track of.
0
 

Author Closing Comment

by:cjceer
ID: 31507682
I was hoping for an easier approach, but sometimes the best way isn't the easiest way.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses
Course of the Month8 days, 14 hours left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question