corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » HTML "If" statements in a .php page?


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author HTML "If" statements in a .php page?
liamC
Member

Registered: 28th Feb 04
User status: Offline
5th Oct 08 at 10:37   View User's Profile U2U Member Reply With Quote

For some reason, as soon as I put a "<!--[if !IE]> <-->" statement into a PHP page it keeps breaking a DIV (that the code isnt even inside) for no apparent reason.

I have done this before in seperate work, and I'm copying and pasting the exact same code and it just does not want to work. As soon as I do it, the DIV gets scrollbars on the height and width

Any ideas?
Sam
Moderator
Premium Member


Registered: 24th Dec 99
Location: West Midlands
User status: Offline
5th Oct 08 at 20:33   View User's Profile U2U Member Reply With Quote

It should be like this:

code:

<!--[if IE]>
code goes here
<![endif]-->

ed
Member

Registered: 10th Sep 03
User status: Offline
5th Oct 08 at 21:15   View User's Profile U2U Member Reply With Quote

Do you have overflow set in the style sheet? Try putting overflow:normal; or overflow:hidden; in there if not.

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
PHP Experts Chump Geek Day 27 874
10th Feb 04 at 22:34
by vibrio
 
Vibe Dredd nyzrox General Chat 8 997
17th Aug 06 at 08:09
by Reedy
 
MYSQL Problem(s) liamC Geek Day 23 1041
14th Jan 07 at 14:21
by Ian
 
PHP Popup Window liamC Geek Day 3 1295
1st Apr 07 at 23:07
by Steve
 
php error Neo Geek Day 9 252
16th Jan 08 at 13:32
by Neo
 

Corsa Sport » Message Board » Off Day » Geek Day » HTML "If" statements in a .php page? 28 database queries in 0.0081971 seconds