RSS Forums RSS
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 1370 | Replies: 5
Reply
Join Date: Jul 2006
Location: Middle America
Posts: 173
Reputation: tefflox is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 1
tefflox's Avatar
tefflox tefflox is offline Offline
Junior Poster

Question need help with large anchor

  #1  
Jul 31st, 2006
I have an anchor over an image, a subsequent <p>, and a seond image. I'm trying to validate xhtml transitional, and it says, for each of the three elements:

missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag...

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").


the format is <a> <h3....><img /> <p> <h3....><img /> </a>

what is a good solution for this?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Posts: 1,592
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 35
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: need help with large anchor

  #2  
Jul 31st, 2006
There isn't a "solution", per se. The structure you're trying to create isn't a valid structure, for several reasons. Your H3 tags aren't closed. Your paragraph tags aren't closed. You cannot place block-level elements, such as paragraphs, within inline elements, such as anchors.

You also can't wrap multiple elements inside of a single anchor.

Please describe what you're trying to do, as the code you posted as an example of your format is syntactically meaningless.
Reply With Quote  
Join Date: Jul 2006
Location: Middle America
Posts: 173
Reputation: tefflox is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 1
tefflox's Avatar
tefflox tefflox is offline Offline
Junior Poster

Re: need help with large anchor

  #3  
Jul 31st, 2006
thanks for the reply. I used a class with centering and 0 padding for a <p> which includes the individual anchors, and validates okay...

is there a way to keep firefox from putting that box around the image anchor? that dotted line? it's really annoying me. thanks again.
Reply With Quote  
Join Date: Dec 2004
Posts: 1,592
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 35
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: need help with large anchor

  #4  
Aug 1st, 2006
You seem to be asking several questions. Please narrow your posts down to a single, specific question, and I'll try to answer it.

Paragraphs can contain anchors. Anchors cannot contain paragraphs, as in your original post.

With your latest post, I think you're referring to the border property? If you don't want a border, for your image or anchor, apply the "border-style: none" CSS property to those elements.
Reply With Quote  
Join Date: Jun 2004
Location: Hemet, CA
Posts: 429
Reputation: FC Jamison is on a distinguished road 
Rep Power: 5
Solved Threads: 18
Colleague
FC Jamison's Avatar
FC Jamison FC Jamison is offline Offline
Posting Pro in Training

Solution Re: need help with large anchor

  #5  
Aug 3rd, 2006
The CSS style you want to eliminate the border around images in an anchor tag is:

a img { border: none }
Reply With Quote  
Join Date: Jul 2006
Location: Middle America
Posts: 173
Reputation: tefflox is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 1
tefflox's Avatar
tefflox tefflox is offline Offline
Junior Poster

Re: need help with large anchor

  #6  
Aug 3rd, 2006
actually i have to use a {outline:none} for firefox, but i havent tried to use "a img {....}"
Last edited by tefflox : Aug 3rd, 2006 at 7:12 am.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 1:48 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC