Forum Moderators: not2easy

Message Too Old, No Replies

css general help

css general help

         

adamlfc

9:21 am on Jul 31, 2006 (gmt 0)

10+ Year Member



hi, ive hit yet another brick wall. ive found a great script for an image gallery, however i need to embedd all my css between the <head> tags . To make it work in ie there is a seperate css file on the origional which is linked to via the html by :

<!--[if IE]>
<link rel="stylesheet" href='css/ie_fixes.css' type="text/css" media="screen, projection" />
<![endif]-->

to embed that script into my html would i just take the css from the .css doc and paste it inbetween those tags.

Also on a seperate notr if in css there is a rule for say:

.item a .item 2 does that mean item 2 held within <a> held within item.

thankyou all so much once again..

[edit reason] no urls thanks, see TOS linked at bottom of page [/edit]

[edited by: SuzyUK at 10:30 pm (utc) on July 31, 2006]

swa66

7:36 am on Aug 1, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hi, ive hit yet another brick wall. ive found a great script for an image gallery, however i need to embedd all my css between the <head> tags . To make it work in ie there is a seperate css file on the origional which is linked to via the html by :

<!--[if IE]>
<link rel="stylesheet" href='css/ie_fixes.css' type="text/css" media="screen, projection" />
<![endif]-->

to embed that script into my html would i just take the css from the .css doc and paste it inbetween those tags.

Why don't you try it? The <!--[if IE]>...<![endif]--> means that what is in between will only be seen by IE, the rest considers it comments.

And why do you think you need to put the CSS in the HTML file? You'll be much more happy in the long term if you use an external file.

".item a .item 2" would indeed apply to
< ... class="item">
<a ...>
<... class="item">
<2>
THIS
</2>
</...>
</a>
</...>

Keep in mind that it also applies to it if there were more layers in there. but it such a long eample already ...

Using elements called "2" is rather "fancy" for day-to-day html and more likely to be doing layout for XML. So I think your example is rather advanced stuff. Perhaps you should aim for something less complex to start with.