Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 20th, 2006, 11:30 AM   #1
quantass
Newbie
 
Join Date: Oct 2006
Posts: 1
Rep Power: 0 quantass is on a distinguished road
Question Is this simple CSS impossible in IE?

Im trying to get IE to display the following correctly. Firefox, of course, displays things fine. Is there a way to get IE to display subset class selectors correctly or is it a lost cause?

<style>
.a{padding-left:10px;}
.b{padding-left:20px;}
.a.b{padding-left:100px;}
</style>
<div class="a">Test</div>
<div class="b">Test</div>
<div class="a b">Test</div>
quantass is offline   Reply With Quote
Old Oct 20th, 2006, 11:35 AM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
IE has issues with box dimensions (what's box, margin, padding, etc.). It also has issues with parental definitions. You may find yourself needing to hack if the browser is determined to be IE. If I can determine that it's IE at the server (one often can), I send a modified page. If I can't, then I hack with script on the client (not good if a viewer has script disabled).
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Oct 20th, 2006, 1:03 PM   #3
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Try the IE7.js library (not to be confused with the Internet Explorer 7 browser). It uses Javascript jiggery-pokery to fix a large number of IE rendering bugs.
Arevos is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple input Oddball Java 6 Mar 12th, 2006 7:30 PM
a simple linking loader for SIC/XE programmingnoob C++ 3 Feb 27th, 2006 12:35 AM
Autonomous Game Agent - A simple programming game Dameon Coder's Corner Lounge 13 Sep 27th, 2005 6:37 PM
Simple Function Questions meverha1 C++ 16 Sep 12th, 2005 2:25 AM
A simple perl script satimis Perl 3 Aug 15th, 2005 10:31 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:41 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC