This is a discussion on "Div class failing to validate" within the Web Page Design section. This forum, and the thread "Div class failing to validate are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Div class failing to validate
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Div class failing to validate
Hi all, just having fun trying to validating a testpage page, I have a page with various sets of links to other sites on, I have surrounded blocks of the links with a box around them using the div class="blahblahblah" element but it keeps throwing errors at me no matter how I try and handle it.
As far as I can see and from research, div is the correct element to use as it is an area, as oppssed to a single block (in which case the span element would be used) class too is used as the sub-element as it is not unique and it is used more than once, is this the correct way of thinking?? Validation from W3C informs me of the following: Quote:
Quote:
Any pointers/help welcome |
|
|
|
||||
|
Re: Div class failing to validate
You can't have a block element (<div class="bax">) in an inline element (<p>)
|
|
|||
|
Re: Div class failing to validate
Many thanks for that, worked a treat! I was too busy looking through the blocks of links for the culprit instead of the rest of the sheet.
|
![]() |
| Tags |
| class, div, validation error |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] Validate Form Class | soloam | JavaScript Forum | 2 | Nov 28th, 2007 14:51 |
| [SOLVED] div class and div id | danny322 | Web Page Design | 1 | Nov 22nd, 2007 12:52 |
| Why should I validate CSS? | spinal007 | Web Page Design | 13 | May 11th, 2007 14:24 |
| array of class | janper | Flash & Multimedia Forum | 4 | Apr 9th, 2007 13:54 |