/    Sign up×
Community /Pin to ProfileBookmark

div tag in a table.

Hi guys my first post to ever ask for help. Well i got a problem with a html page for my website [U][url]http://ftc-gaming.co.uk/[/url][/U] Where that on the news/home page i have this [url=”http://ftc-gaming.co.uk/images_for_linking/problem.png”]problem[/url] and i was to make it so the div area aligns to the top of the table so that it just looks more professional.

Edit: I am trying to make this valid html but i still got 15 errors so if you could try to give me a valid sulotion that be nice. the doctype is,

<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01 Frameset//EN”
http://www.w3.org/TR/html4/frameset.dtd“>

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@KDLAOct 06.2006 — You need to add a vertical align attribute: valign="top" to the table cell (<td>). (But, if you want to use CSS, try style="vertical-align: top" in the table cell tag.

Great that you're wanting valid coding!

First, your document isn't a frameset -- it looks like a straight HTML page to me. In that event, you'll want to use this DOCTYPE:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

The missing "alt" tags are due to your images not containing descriptive text. You use alt tags to give the viewer an idea of "what they're missing" if the image fails to download.

<img src="file.jpg" [B]alt="photo of a person"[/B] /> -- Like that.

Your other errors are usage of HTML attributes, which would be better handled using CSS. I suggest you look at http://www.w3schools.com/css/default.asp to find the CSS equivalents of the margin/padding/alignment attributes you've used.

Good Luck -

KDLA
Copy linkTweet thisAlerts:
@lilsammyauthorOct 06.2006 — Yeah i didnt know what doctype to use, I chose framset for the simple reason it gave the least errors when i validate it. I will try loose, I thought it would be some css just didnt know what to use.

Thanks again.
Copy linkTweet thisAlerts:
@KDLAOct 06.2006 — (Well, you don't choose a doctype to avoid errors, but one that is best for the visual representation of your page: http://www.alistapart.com/stories/doctype/) ?

KDLA
Copy linkTweet thisAlerts:
@lilsammyauthorOct 06.2006 — Valid *Dances around a little*
×

Success!

Help @lilsammy spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...