Thread: Validation

Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2011
    Posts
    13
    Plugin Contributions
    0

    Default Validation

    Hello,

    I wonder if you can help me...

    I can't validate this part of the page:

    <ul>

    <li>...</li>

    <li>...</li>

    <li id="menu-cart">

    <a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>">

    <div style="position:relative; top:30px; left: 52px;">

    <span>Carrello</span>

    <?php echo HEADER_TITLE_IN_CART . $_SESSION['cart']->count_contents(); ?>

    </div>

    </a>

    </li>

    </ul>

    Thank you.

    Chris

  2. #2
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,826
    Plugin Contributions
    31

    Default Re: Validation

    At first glance the obvious thing wrong is opening the div in the middle of the anchor. And maybe the span is not allowed in there either.

    Try this:

    <div style="position:relative; top:30px; left: 52px;">
    <a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>">
    Carrello&nbsp;
    <?php echo HEADER_TITLE_IN_CART . $_SESSION['cart']->count_contents(); ?></a>
    </div>

    and I would recommend to give the div an id and put the css in an external stylesheet.

  3. #3
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Validation

    Yes, opening a block type element inside a line type element would likely cause a validation error.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 

Similar Threads

  1. W3 Validation
    By faithofgod in forum General Questions
    Replies: 1
    Last Post: 24 Mar 2008, 10:58 PM
  2. Validation
    By kobra in forum General Questions
    Replies: 8
    Last Post: 24 Sep 2006, 07:33 PM
  3. Validation
    By ideasgirl in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 2 Aug 2006, 02:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg