Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-11-2012, 01:42 PM   PM User | #1
Killfrenzy
New to the CF scene

 
Join Date: Feb 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Killfrenzy is an unknown quantity at this point
Internet Explorer vs. My Site

Hello everyone,

I'm a beginner when it comes to programming and I am trying to learn HTML, PHP and Javascript at the moment.

I have a simple private site that has a photo album which uses HTML and PHP. At the moment, everything works fine in Google Chrome and Firefox.

But.. when I open my website in Internet Explorer the site is not centered as it should be. I am guessing some code is not compatible with IE but how do I fix this?

This is the site I am talking about: www.deniali.com

And while I am at it, how can I make it possible to add videos to the photo gallery? For example; it appears as a thumbnail and when you click it opens like a normal picture but with controls to play/pause the video.

I appreciate it if someone could kick me in the right direction .


Thanks!
Killfrenzy is offline   Reply With Quote
Old 02-11-2012, 01:57 PM   PM User | #2
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,689
Thanks: 158
Thanked 2,184 Times in 2,171 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
The html source of your page begins as follows
Code:
<html>
<head>
<meta name="description" content="DeniAli - a random collection">

<meta name="keywords" content="deniali,deni,ali,collection,denial,random,photos,lol,9gag,tumblr,private,">
</head>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
IE turns to quirks mode when it encounters anything before DOCTYPE declaration. So, remove the highlighted portion from your code.

PS: Make use of validator, when dealing with cross browser issues.
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Old 02-11-2012, 02:09 PM   PM User | #3
Killfrenzy
New to the CF scene

 
Join Date: Feb 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Killfrenzy is an unknown quantity at this point
Quote:
Originally Posted by abduraooft View Post
The html source of your page begins as follows
Code:
<html>
<head>
<meta name="description" content="DeniAli - a random collection">

<meta name="keywords" content="deniali,deni,ali,collection,denial,random,photos,lol,9gag,tumblr,private,">
</head>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
IE turns to quirks mode when it encounters anything before DOCTYPE declaration. So, remove the highlighted portion from your code.

PS: Make use of validator, when dealing with cross browser issues.

Thanks for your reply.

I removed the line of code from index.php but it has no effect.

edit: Never mind, it is working now. Thank you very much that was stupid of me!

Any ideas on my second question would be very much appreciated.

Last edited by Killfrenzy; 02-11-2012 at 02:11 PM.. Reason: First question solved
Killfrenzy is offline   Reply With Quote
Reply

Bookmarks

Tags
album, html, photo, php

Jump To Top of Thread


Thread Tools
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

Forum Jump


All times are GMT +1. The time now is 12:34 PM.


Advertisement
Log in to turn off these ads.