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-23-2011, 03:40 PM   PM User | #1
JustinChrono
New Coder

 
Join Date: Jan 2010
Posts: 47
Thanks: 1
Thanked 0 Times in 0 Posts
JustinChrono is an unknown quantity at this point
validation error... doesn't make sense?

i am having problems with my slider on the front page of my website
http://www.germanperformanceservice.com
on internet explorer only, after a picture slides, the page will scroll down to the bottom. this is very frustrating and distracting.

i tried the validator, Here and there are only a few errors left, which seem to have to do with the slider problem, but i cant quite figure any of it out (i tried fixing the conditional comment and nothing happened)
if anyone could help me with this it would be greatly appreciated.
JustinChrono is offline   Reply With Quote
Old 02-23-2011, 03:56 PM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,614
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
You can’t have the same ID more than once in a document. And then you’re repeatingly opening and immediately closing an HTML comment in the slider’s list but adding yet another closing comment string after each list item.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Old 02-23-2011, 03:58 PM   PM User | #3
JustinChrono
New Coder

 
Join Date: Jan 2010
Posts: 47
Thanks: 1
Thanked 0 Times in 0 Posts
JustinChrono is an unknown quantity at this point
thank you so very much for responding.
however, i am still confused. is there any way you can help me out?
if i cant have the same id, what can i do? i tried copying that ID the exact way it was and changing the name, so there were different IDs with the same info, but that didn't seem to work at all for some reason. also, i only see one opening and closing of a comment string... that is the one <!-- and --> i have.
am i missing something?
JustinChrono is offline   Reply With Quote
Old 02-23-2011, 04:02 PM   PM User | #4
effpeetee
Senior Coder

 
effpeetee's Avatar
 
Join Date: Feb 2007
Location: Clapham Junction - London SW
Posts: 4,884
Thanks: 228
Thanked 204 Times in 203 Posts
effpeetee is an unknown quantity at this point
This may explain some of your errors.
ID's should only be used once. Use classes for multiple use.

Frank
__________________
* Sources (updated: 21.11.2012.
Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

Last edited by effpeetee; 02-23-2011 at 04:08 PM..
effpeetee is offline   Reply With Quote
Old 02-23-2011, 04:04 PM   PM User | #5
xelawho
Senior Coder

 
xelawho's Avatar
 
Join Date: Nov 2010
Posts: 2,437
Thanks: 52
Thanked 454 Times in 452 Posts
xelawho will become famous soon enoughxelawho will become famous soon enough
I don't know allowTransparency, but if you want to use the same css for various elements, you can use div class

html:
<div class="excsl">

css:
.excsl {... }

your other errors seems to be minor, close your image tags and use <br/> instead of <br>
xelawho is offline   Reply With Quote
Old 02-23-2011, 05:32 PM   PM User | #6
JustinChrono
New Coder

 
Join Date: Jan 2010
Posts: 47
Thanks: 1
Thanked 0 Times in 0 Posts
JustinChrono is an unknown quantity at this point
i think the error has something to do with the ' --> ' related error which i do not understand. i tried fixing the div to make it a div class instead of id and nothing changed.
any help!?!? thanks!!
JustinChrono is offline   Reply With Quote
Old 02-23-2011, 05:39 PM   PM User | #7
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
You have improper use of comment tags all over your page. A proper comment in html is:

<!-- Comments go here -->

Notice the opening and closing characters. If you comment out a bit of mark-up, it must be exactly in the syntax above.

Now, most of the comments I saw on your page were empty, or not even wrapping around any code at all. Remove them completely if they're empty, since they are useless.
__________________
Teed
teedoff is offline   Reply With Quote
Old 02-23-2011, 05:45 PM   PM User | #8
JustinChrono
New Coder

 
Join Date: Jan 2010
Posts: 47
Thanks: 1
Thanked 0 Times in 0 Posts
JustinChrono is an unknown quantity at this point
Quote:
Originally Posted by teedoff View Post
You have improper use of comment tags all over your page. A proper comment in html is:

<!-- Comments go here -->

Notice the opening and closing characters. If you comment out a bit of mark-up, it must be exactly in the syntax above.

Now, most of the comments I saw on your page were empty, or not even wrapping around any code at all. Remove them completely if they're empty, since they are useless.
thanks but i don't see any improper use of comment tags in my html.. i cant find it.

the only one i can find is this
<!-- <?php query_posts("cat=$eg_slide_cat&showposts=$eg_slide_posts"); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> -->
which i have tried editing many times..and it has the correct code, right? idk what is wrong
JustinChrono is offline   Reply With Quote
Old 02-23-2011, 06:24 PM   PM User | #9
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,614
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
Quote:
Originally Posted by JustinChrono View Post
the only one i can find is this
<!-- <?php query_posts("cat=$eg_slide_cat&showposts=$eg_slide_posts"); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> -->
Oh, there we go. Don’t comment out that second line as it’s starting the wordpress loop. Move the closing comment up after the query_posts function.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Old 02-23-2011, 06:27 PM   PM User | #10
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
Quote:
Originally Posted by JustinChrono View Post
thanks but i don't see any improper use of comment tags in my html.. i cant find it.

the only one i can find is this
<!-- <?php query_posts("cat=$eg_slide_cat&showposts=$eg_slide_posts"); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> -->
which i have tried editing many times..and it has the correct code, right? idk what is wrong
Do you know how to view source? If you go to the validator link you gave, it tells you the line the error is occuring on. Open your page in a browser, then view source. I think lines 160 and 173. On both of those lines you will see closing comment tags there.

A couple of your other errors I think are just not using the alt attribute for your images. You can just insert alt="" and those will clear up as well.
__________________
Teed

Last edited by teedoff; 02-23-2011 at 06:30 PM..
teedoff is offline   Reply With Quote
Old 02-23-2011, 07:13 PM   PM User | #11
JustinChrono
New Coder

 
Join Date: Jan 2010
Posts: 47
Thanks: 1
Thanked 0 Times in 0 Posts
JustinChrono is an unknown quantity at this point
Quote:
Originally Posted by VIPStephan View Post
Oh, there we go. Don’t comment out that second line as it’s starting the wordpress loop. Move the closing comment up after the query_posts function.
hmm, thanks, i fixed that so it looks like this,
<!-- <?php query_posts ("cat=$eg_slide_cat&showposts=$eg_slide_posts"); ?> -->
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

instead of how it used to look... however,
however, the problem still occurs.

also thanks, i viewed the source, but this doesn't tell me where the code is in my files to edit it, u know?

plus, if u look at the validator, there is only 1 error left about not understanding the "allowTransparency" .. any other ideas?? thanks

Last edited by JustinChrono; 02-23-2011 at 07:14 PM.. Reason: addition
JustinChrono is offline   Reply With Quote
Reply

Bookmarks

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 05:50 AM.


Advertisement
Log in to turn off these ads.