![]() |
Stuck on html - I so crap
I'm making a new site and I want to create a header bit of text, half of which is a link and the other half isn't. But. I don't want the part that is a link to appear in the link text format, I want it as the header style but underlined. Also I want it all on one line.
This is the code I have: code: Now this works in IE but not Opera - which just displays "philybaby.co.uk > links.html" as one link. I want just "philybaby.co.uk" to be a link. This is what I want: philybaby.co.uk > links.html But the only way I can get the link part to work for both browsers is for it to look like: philybaby.co.uk > links.html But the above code (in code tags) appears as this in Opera: philybaby.co.uk > links.html Could someone please help me with this? Thanks a lot, I feel so silly letting html beat me :o. |
Uninstall Opera.
|
I see :rolleyes: Thanks for the tip :P. Any good ideas?
|
It may not be possible in Opera because browsers always parse CSS differently. The code looks fine, so if it is still not running right, then I would say you are stuck.
Out of interest, does it work in Mozilla \ Nutscrape? |
A couple of possibilities:
1. Maybe Opera gets angry about improperly nested tags. Try this: code: 2. Maybe Opera doesn't like it when you use the ">" sign independently of a tag. Try changing the ">" to ">". edit: "& gt", without that space. |
It is & gt, it just didn't display above right. Anyway I decided to just use normal font tags, not exactly the same but pretty similar. That code above CG gives you my middle example above. Oh well, I wonder which browser is complying with the html coding rules and which isn't?
|
Looks like a valid tag to me (except for the mixed-up nesting). Try the HTML validator and see what it says.
http://validator.w3.org/ |
opera is getting crappy, switch to mozilla or phoenix (ie at least)
|
Make sure you have an ISO charset to go with the html document.
code: |
Quote:
|
Technocally, I think HTML 4.0 still allows improper nesting, since it's based on SGML. XHTML, however, does not allow such junk, since it's based on XML. I always use the validator on my pages to make sure I haven't screwed something up.
|
screw w3.
code: |
w3c works wonders. Its actually de-bloating my already screwed up website which has crashed Opera a few times. ;)
|
w3 = useless for everything i do
|
Yeah. They're useless. All they do is create the standards that make the WWW work.
|
Speaking of standards. Have you worked with w3c's XML DOM lately?
yaaark |
anyone can make standards.
|
Quote:
|
Here's some code:
code: Crack it. |
rolfen, which one are you refering to? There are a number of DOMs that the w3c has produced. (DOMs are always scary looking)
[edit] No. I was thinking of DTDs, because I'm stupid. :) I was even saying "document object model" in my head. I hope it gets adopted by all the browsers. I'm sick of the IE DOM and the standard one not matching. DOMs are generally pretty ugly, too. They incorporate so much. [/edit] InvisableMan, the w3c has industry support. You can go make your own standards all you want, and no one is going to give a damn. I think they perform a valuable service. I like being able to write my XHTML once and having it work cross-platform, cross-browser. |
| All times are GMT. The time now is 09:01. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.