Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   General Discussions (http://forums.winamp.com/forumdisplay.php?f=1)
-   -   Stuck on html - I so crap (http://forums.winamp.com/showthread.php?t=120198)

fwgx 5th January 2003 10:35

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:

<a href="http://www.philybaby.co.uk">
<h1 id="textSection1" style="COLOR: black; FONT: 13pt/15pt verdana">philybaby.co.uk</a> &gt links.html</h1>


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.

Bilbo Baggins 5th January 2003 10:40

Uninstall Opera.

fwgx 5th January 2003 10:43

I see :rolleyes: Thanks for the tip :P. Any good ideas?

Bilbo Baggins 5th January 2003 10:48

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?

Curi0us_George 5th January 2003 10:51

A couple of possibilities:

1. Maybe Opera gets angry about improperly nested tags. Try this:
code:

<h1 id="textSection1" style="COLOR: black; FONT: 13pt/15pt verdana"><a href="http://www.philybaby.co.uk">philybaby.co.uk</a> > links.html</h1>



2. Maybe Opera doesn't like it when you use the ">" sign independently of a tag.
Try changing the ">" to "&gt".

edit: "& gt", without that space.

fwgx 5th January 2003 11:11

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?

Curi0us_George 5th January 2003 11:45

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/

dj_rigo 5th January 2003 14:45

opera is getting crappy, switch to mozilla or phoenix (ie at least)

henry3k56 5th January 2003 18:09

Make sure you have an ISO charset to go with the html document.

code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Test</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body>
<span id="textSection1" style="COLOR: black; FONT: 13pt/15pt verdana">
<a href="http://www.philybaby.co.uk">philybaby.co.uk</a> &gt; links.html</span>

</body>
</html>


zootm 5th January 2003 19:57

Quote:

Originally posted by Curi0us_George
1. Maybe Opera gets angry about improperly nested tags.
i think that's the problem. same thing happens on my webpage.

Curi0us_George 5th January 2003 22:34

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.

InvisableMan 5th January 2003 22:48

screw w3.

code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>blah</title>
</head>
<body bgcolor="#000000">
<h1><a href="http://www.philybaby.co.uk"><font color="#FF0000" face="verdana" size="4pt">philybaby.co.uk</font></a><font color="#FFFFFF" face="verdana" size="4pt">&nbsp;&gt;&nbsp;links.html</h1>
</body>
</html>


henry3k56 5th January 2003 23:45

w3c works wonders. Its actually de-bloating my already screwed up website which has crashed Opera a few times. ;)

InvisableMan 6th January 2003 00:07

w3 = useless for everything i do

Curi0us_George 6th January 2003 01:37

Yeah. They're useless. All they do is create the standards that make the WWW work.

rolfen 6th January 2003 01:49

Speaking of standards. Have you worked with w3c's XML DOM lately?
yaaark

InvisableMan 6th January 2003 01:54

anyone can make standards.

zootm 6th January 2003 01:55

Quote:

Originally posted by InvisableMan
anyone can make standards.
anyone can write code. what's your point?

hestermofet 6th January 2003 01:59

Here's some code:
code:
asd-as88,
._--7ahh
"9asdj<\
|oaso|//
aas ---- --->> (-)
asdd jj !2jj
L99a


Crack it.

Curi0us_George 6th January 2003 04:12

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.