[SOLVED] conditional statement firefox

This is a discussion on "[SOLVED] conditional statement firefox" within the Web Page Design section. This forum, and the thread "[SOLVED] conditional statement firefox are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 25th, 2007, 16:10
saltedm8's Avatar
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,217
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to saltedm8
[SOLVED] conditional statement firefox

is there a conditional statement format for firefox ?

i know the one for ie7 but how does the firefox one go ?

Code: Select all
<!--[if IE7]
__________________
My Recipe forum...don't click here
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Reply With Quote

  #2 (permalink)  
Old Nov 25th, 2007, 16:27
alexgeek's Avatar
Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: conditional statement firefox

No they are just for IE.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #3 (permalink)  
Old Nov 25th, 2007, 16:31
saltedm8's Avatar
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,217
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to saltedm8
Re: conditional statement firefox

what a pain, ok thanks, you will be able to see why here http://www.fmat.co.uk

in ff its over to the left and the menu is further up

but in ie its centered properly and the menu is where i want it
__________________
My Recipe forum...don't click here
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Reply With Quote
  #4 (permalink)  
Old Nov 25th, 2007, 16:35
alexgeek's Avatar
Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: conditional statement firefox

Set your main stylesheet to work for FF then use a conditional comment to tell IE to do it differently.
Just swap around what you want to do.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #5 (permalink)  
Old Nov 25th, 2007, 16:38
saltedm8's Avatar
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,217
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to saltedm8
Re: conditional statement firefox

never had to use conditional statements before, whats the full format with ie ?
__________________
My Recipe forum...don't click here
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Reply With Quote
  #6 (permalink)  
Old Nov 25th, 2007, 16:55
alexgeek's Avatar
Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: conditional statement firefox

I use this:
HTML: Select all
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="/ieonly.css" />
<![endif]-->
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #7 (permalink)  
Old Nov 25th, 2007, 16:57
saltedm8's Avatar
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,217
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to saltedm8
Re: conditional statement firefox

cheers mate...
__________________
My Recipe forum...don't click here
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Reply With Quote
  #8 (permalink)  
Old Nov 25th, 2007, 17:12
alexgeek's Avatar
Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: conditional statement firefox

You're welcome, this solved now?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #9 (permalink)  
Old Nov 25th, 2007, 17:42
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,636
Thanks: 0
Thanked 6 Times in 6 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: conditional statement firefox

You can also use lt and gt. lt meaning Less than and gt meaning Greater than.

Here is an example of lt:

Code: Select all
<!--[if lt IE 6]>
And here is one for gt:
Code: Select all
<!--[if gt IE 5]>
Hope that helps!
Reply With Quote
  #10 (permalink)  
Old Nov 25th, 2007, 18:13
saltedm8's Avatar
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,217
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to saltedm8
Re: conditional statement firefox

nice thanks marc, and yes its solved now cheers
__________________
My Recipe forum...don't click here
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Reply With Quote
Reply

Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Type Input in Conditional Statement affirmallchance Flash & Multimedia Forum 3 Jan 9th, 2008 11:30
[SOLVED] How do I write IE conditional comment Lchad Web Page Design 23 Oct 17th, 2007 01:29
Conditional IF in external stylesheet AdRock Web Page Design 6 Sep 23rd, 2007 22:45
Functions and conditional IFs AdRock PHP Forum 4 Sep 17th, 2007 08:18
ASP stylesheet switcher with conditional comments Shelly Classic ASP 1 Apr 19th, 2006 12:44


All times are GMT. The time now is 05:10.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43