There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
black screen blue screen boot bsod computer connection crash css dell display driver drivers email error explorer firefox firefox 3 hard drive internet internet explorer itunes laptop lcd malware monitor network networking nvidia outlook outlook 2003 outlook express password printer problem problems ram router security slow software sound sprtcmd.exe trojan usb video virus vista windows windows xp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
IE only CSS?


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
DrP's Avatar
DrP DrP is offline
Senior Member with 481 posts.
 
Join Date: Jul 2005
Location: UK
Experience: What's a compoota?
25-Jul-2006, 07:22 PM #1
IE only CSS?
How do I write CSS which I only want to be read by IE?
I have tried the following:

* br {line-height: 35px;}

but Firefox is reading it and responding when I though the * meant only IE should read it...
covert215's Avatar
Account Disabled with 2,651 posts.
 
Join Date: Apr 2006
Experience: Web Designer
25-Jul-2006, 11:28 PM #2
Why do you want that anyways?
brendandonhu's Avatar
Distinguished Member with 15,988 posts.
 
Join Date: Jul 2002
Location: Ann Arbor, MI
Experience: Advanced
26-Jul-2006, 12:28 AM #3
There's no space
*br {line-height: 35px;}
DrP's Avatar
DrP DrP is offline
Senior Member with 481 posts.
 
Join Date: Jul 2005
Location: UK
Experience: What's a compoota?
26-Jul-2006, 07:22 AM #4
Whoops! Thought I'd tried that...
Thanks Brendan.

Covert215: Why do I need it? Because I can't get IE and FF to treat <br /> the same. In FF it is always larger vertically, even when I have set margin and padding to 0 and set a fixed line-height. I've found I can get around it by using the default styles for FF then adjusting the IE CSS separately.
__________________
Clive

Last edited by DrP : 26-Jul-2006 07:30 AM.
covert215's Avatar
Account Disabled with 2,651 posts.
 
Join Date: Apr 2006
Experience: Web Designer
26-Jul-2006, 02:29 PM #5
oh...didn't know that
namenotfound's Avatar
Computer Specs
Distinguished Member with 2,198 posts.
 
Join Date: Apr 2005
Location: New York
Experience: I know what I know, I am
26-Jul-2006, 10:16 PM #6
The "*" by itself is a universal selector.

* br is like saying "br is the child of *"

Just like:
.hello table {font-color: red;}
Would mean all the <table> tags within whatever element has the class of "hello" will be red.

I know brendan already gave you the answer of having no space *br, but since he didn't explain WHY that is, I thought I would
__________________
-----------------------------
| 404: Name Not Found |
-----------------------------
PLEASE NOTE: If I happen to help you in a post, or just simply reply to it, doesn't mean I want to be bombarded with PMs. I answer all questions in posts, not in PMs. Thank you, and have a good day.

<?php $h = 'Hello '; $w = 'World'; echo $h.$w; ?>

My Favorite Editors:
Windows: Crimson Editor
Mac: Taco HTML Edit
Linux: gPHPEdit
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 11:09 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.