![]() |
html help v3
Working on a weather site for my site...not working out very well so i need some help.
First off, is the image tag <img src="image url here"> or <img src="image url here"/> Second heres the problem: www.msrlive.net/weather/7day.htm If you look the fox 9 thing is supposed to be below the other one. I'm using <BR> tags but they arnt doing anything. Anyone know why? Thanks :) - Tucker |
The one time you used <p><p> and you got the result you wanted, right? Take out the <br><br> and use <p><p> again. What will that do?
|
Nope. It doesnt work, i need it like this:
<img src="wcco 7 day"><BR><BR> Fox 9's 7 Day:<BR> <img src="fox 9's image:><BR><BR> And so one. But its not taking my <BR>s |
put a &nbsp; between the <br>
|
If you're going to use XHTML, it has to be <br /> and lowercase (iirc). You're also forgetting a few things in your html element. It should look like this:
PHP Code:
http://validator.w3.org/check?verbos...her%2F7day.htm [edit] The img element also has to be closed in XHTML. <img alt="" src="" /> |
and all attributes needs to be enclosed with " and ", short-attributes is not allowed, such as foo=bar it should be foo="bar"
also need to use endtag for you <br>, no uppercase tag names such as <BR>, not allowed in XML, nor attributes, such as FOO="bar". For it to truly be XML or XHTML if you like you need to add an XML tag to the document as well, <?xml> |
Quote:
I'm not convinced XHTML is hugely beneficial in this case. |
And don't use <p> (paragraph) for line breaks, that's not it's purpose. Use <p> for paragraphs such as
PHP Code:
PHP Code:
PHP Code:
|
Quote:
|
If you find it useful, do this instead
PHP Code:
Such as instead of writing PHP Code:
PHP Code:
PHP Code:
|
Re: html help v3
Quote:
code: this is making all of you images float to the left. Meaning they are left aligned and text should flow around them when possible. Get rid of those <br> tags and Put this tag around thatFox 9 text: code: |
Re: Re: html help v3
Quote:
|
OMG who gives a fuck?
He want's it to work not to be ulta beautiful code. Nobody looks at the code. |
No but using inline style kinda removes the power of the CSS a great deal. ;)
You'd have to rewrite the CSS if you want the same style somewhere else on the page, and you can't use it on multiple pages either :P |
Quote:
Quote:
A more sensible use of classes would probably be to style your paragraphs and their subelements using classes, so you cut down on faff. PHP Code:
PHP Code:
Leave class tags out where they don't add anything, is all I'm trying to say. They're supposed to attach extra semantic meaning to elements. If there's none to add, don't add any. |
Yes span is okay too, just that <p> wasn't made for linebreaks, span is good. Indeed. And I know <em> implies something important, just showing how to customize it ;)
|
Quote:
|
Yes, you are right, most cases it would be natural to just use
PHP Code:
PHP Code:
|
| All times are GMT. The time now is 08:49. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.