Jump to content

div problem


ragrim

Recommended Posts

Hi,

 

Im having a problem that i think is div related.. I have a div that holds a javascript image slider, and some wierd things are happening.

 

In some browsers all my divs get squashed to the top of the page yet in others it works ok. on the browsers that it doesnt work on, if i highlight the address bar and hit enter, it reloads the page and displays properly, if i then hit F5 to refresh it gets all squashed to the top again.

 

I was hoping someone could take a look at my site and see what the hell is going on

 

http://www.chrisconnollyit.com/sfv

 

Here is the browsers that work

 

Firefox on MAC OSX works fine

Safari on MAC OSX doesnt work

Chrome on MAC OSX doesnt work

 

Firefox on Windows XP doesnt work

Internet explorer on windows XP works

 

The problem seems to be something to do with this section

    <div class="imgholder1">
    <img src="images/home-image5.jpg" width="900" /> 
    <img src="images/home-image4.jpg" width="900" />
    </div>

 

Any help would be appreciated

Link to comment
https://forums.phpfreaks.com/topic/243452-div-problem/
Share on other sites

I just tested it and it works fine here on ie 7,8,9 firefox chrome.

 

Anyway the best thing to do is always to check if you have errors, by running your page through the w3c validator.

Seems you use an id of #current more than once which is not good.

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.chrisconnollyit.com%2Fsfv%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

Link to comment
https://forums.phpfreaks.com/topic/243452-div-problem/#findComment-1250133
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.