#1 (permalink)  
Old 03-25-2006, 03:33 AM
Registered User
 
Join Date: Mar 2006
Posts: 1
Exclamation Multi browser CSS help needed bad

Hey there, Im real stuck with this problem. What it is is I have defined a series of tags in CSS that relate to text, so like "text { font-family: blah blah }" and so on, and then used the markup <text> to define font, and in Firefox, it's perfect. However I cant get the bugger to work in IE, it doesnt recognise the style sheet and so doesnt recognise the markup. Is there any If statement I could use, or another way of defining CSS to be recognised by the browser? This has got me stumped bad, and unfortunately, all my users dont use Firefox.
Reply With Quote

  #2 (permalink)  
Old 03-25-2006, 10:06 AM
curtiss's Avatar
Moderator
 
Join Date: May 2003
Posts: 1,445
Put a period in front of your style definition (".text"), and then it becomes a class definition. From there, simply put all of the text you want effected into some sort of tag that will accept a class declaration (span, table/tr/td, div, etc.).

You can also try defining "body" within your css, which should effect everything within your body tags. However, I've found that, when you use tables and spans, etc., they break out of the "body" definition.
__________________
I hate Internet Explorer! Anyone with me?
Reply With Quote
  #3 (permalink)  
Old 03-25-2006, 11:52 AM
Till's Avatar
Administrator
 
Join Date: Jan 2002
Location: Berlin, Germany
Posts: 1,453
Don't use the font tag, it's old, and you don't want it ever.

Also, beware of reserved words.

I'll give you an example:

Code:
<style type="text/css">
.intro { font-size:8pt; color:#ff0000 }
</style>
To use it:
Code:
<p class="intro">your introduction here</p>
Till
Reply With Quote
  #4 (permalink)  
Old 04-08-2006, 02:58 PM
cssiscool's Avatar
Registered User
 
Join Date: Apr 2006
Posts: 6
Talking

Learn cross-browser CSS

Read the following book css hacks and filters
http://www.idest.com/csshacks/

Many libraries world wide have books related to the internet, web and computers in general. Go to your local public library and get the username and password for http://www.firstsearch.org/ You can look up the book yourself but they will have to order it for you. Sometimes this can take awhile if the book is checked out by someone else. After reading the books and making copies of certain pages with a photo copier simply return it to them.

By using firstsearch you can search for any book in the world. Some libraries might charge a small fee but most are free. Every web design book I have read was acquired in this fashion.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS Tips & Tricks - Tutorials and more... Webnauts Programming and Scripting 12 06-20-2007 10:35 PM
New Tutorial - CSS Design with Forms! Allen HTMLCenter News 2 04-10-2006 02:59 AM
Background colour not displaying in Firefox... CSS problem? christhorn Programming and Scripting 4 02-02-2006 04:29 PM
Extracting Single Values From CSS Definitions? curtiss Programming and Scripting 2 01-25-2006 05:52 PM
css external sheet ammy Programming and Scripting 10 01-05-2006 12:04 PM


All times are GMT -5. The time now is 04:39 PM.

 
Bitrix
Clicky Web Analytics
CloudContacts
Maxtango


Subscribe to our feed | add to myYahoo!

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
© 1997-2007 HTMLCenter