/    Sign up×
Community /Pin to ProfileBookmark

My HTM is ignoring one div and class for some reason..

I’m a noob to coding, I started today and sliced up a photshop iamge, I know it might have been easier but I needed 3 sections at the top so I could have a clickbale logo.

For some strange reason that I can’t figure out is that when I give my 3rd image a div it is being ignored in some sort of strange way.

[I]Here is my code, it’s the <div id=”headerright> that isn’t working.[/I]

[CODE]<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE html
PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd” />

<html xmlns=”http://www.w3.org/1999/xhtml”
xml:lang=”en” lang=”en” />
<head>
<title>TheDj’s Net First Design Test</title>
<link rel=”stylesheet” href=”css/default.css” />
</head>
<body>
<div id=”container”>
<div id=”header”>

<img src=”images/top_left_banner.gif” alt=”TheDj’s First Design Test /> <!–left of banner–>
<ul id=”nav”>
<li><a href=”#”>Home</a></li>
<li><a href=”#”>Members</a></li>
<li><a href=”#”>Login</a></li>
</ul>

<div id=”centerheader”>
<img src=”images/middle_logo_banner.gif” alt=”Logo />

<div id=”headerright”>
<img src=”images/top_right_banner.gif” alt=”top right />

</div> <!–end header–>

<div id=”main>”
<div id=”main_content_left”>
<img src=”images/main_content_left.gif” />
</div> <!–end main content left–>

<div id=”main_content_left_2″>
<img src=”images/main_content_left_2.gif” />
</div> <!–end main content left 2–>

<div id=”main_content_left_top_3″>
<img src =”images/main_content_left_top_3″ />
</div> <!–end main content left top 3–>

<div id=”main_content_bottom_3″>
<img src=”images/main_content_bottom_3.gif” />
</div> <!–end main content 3 bottom–>

<div id=”main_content_left_top_4″>
<img src=”images/main_content_left_top_4.gif” />
</div> <!–end main content 4 top–>

<div id=”main_content_left_bottom_4″>
<img src=”images/main_content_left_bottom_4.gif” />
</div> <!–end main content 4 bottom–>

<div id=”main_content_left_top_5″>
<img src=”images/main_content_left_to_5.gif” />
</div> <!–end main content 5 top–>

<div id=”main_content_left_bottom_5″>
<img src=”images/main_content_left_bottom_5.gif” />
</div> <!–end main content 5 bottom–>

<div id=”main_content_last_right”>
<img src=”images/main_content_left_bottom_6.gif”

</div> <!–end main–>

</div><!–end container–>

</body>
</html>[/CODE]

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@6StringGeekJun 22.2009 — Try closing your quotes on alt="Logo, alt="top right and fix the quotes on <div id="main>"
Copy linkTweet thisAlerts:
@NerdygeekauthorJun 22.2009 — Veryy nice thank you for poiting this out, now all I need to do is figure out how to get the 3 images to all align at the top.. I dont think the tut I watched for slicing is quite desirable for my ultaimte aim as it didn't cover tables and I think this design will only work with a table ?
Copy linkTweet thisAlerts:
@michael0234Jun 22.2009 — Hi

If you want your images to align at the top, you could add postion:relative; to your header div in your css. Then give the other divs in this section a position of absolute and position them how you want.
×

Success!

Help @Nerdygeek 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.16,
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,
)...