Welcome to WebmasterWorld Guest from 18.104.22.168
Forum Moderators: open
I have a big fat
that likes to sleep all day. (where the word cat is linked to another page)
But I want it to look like this:
I have a big fat cat that likes to sleep all day.
So my anchor text is linked to the page I want it to link to, but the linked word moves to it's own line rather than just staying within the sentence.
Does anyone know why this is happening? Hopefully my description of what's going on makes sense.
This is not normal behavior for an anchor element (<a>) so I'm thinking there must be something else in the code. The anchor is behaving like a block level element rather than an inline element, which would be the default.
Do you have CSS associated with the page? It could be in an external document, in the <head> section of this document, or in the opening anchor tag itself. If so, that's the place to look.
Also, here are some helpful links when working with display issues:
Some display issues can be impossible to resolve if certain kinds of invalid mark-up are involved, so it's always best to ensure the code is valid before moving on to de-bug rendering problems.
[edited by: tedster at 5:49 pm (utc) on Feb. 13, 2008]
a good tool to debug this type of problem is firefox with the Web Developer 1.1.4 extension.
it includes the w3c html validator, built into the "view source" feature.
No, I'm not using CSS. (I don't even really know what that is).
Believe me, this is a true beginner's page. It only has three columns, some text, three links, and one image.
I've only just started getting my hands dirty with actual coding this week. I've always used a WYSIWYG editor (Homestead) to build my websites in the past but have been convinced by others that I really should learn to build them myself.
So here I am!
Thanks for all the friendly welcomes!
It's nice to finally find a site where the members are really helpful and no one is trying to sell you something.
Just a thought.
....all three of the html links on my page show up with a problem on the validator tool
One thing to be aware of is one error can produce cascading errors, the second, third.... and others on the list may not be errors. Fix the first one and revalidate it.
If not I'll be back for more suggestions. ;-)