/    Sign up×
Community /Pin to ProfileBookmark

Alingment Issue

What I am trying to do is create a page where the top and left sides are shaded. I have two created two divisions, the top…

[code]
#ahead
{
width: 800px;
height: 60px;
background-color: #996666;
border: 2px solid #663333;
font-family: tahoma;
font-size: 20px;
font-weight: 600;
color: #663333;
text-align: center;
}[/code]

and the left side…

[code]
#abar
{
margin-top: 0px;
width: 100px;
background-color: #996666;
border: 2px solid #663333;
font-family: tahoma;
font-size: 16px;
font-weight: 600;
color: black;
text-align: center;
float: left;
}[/code]

But when I call the two division in my html…

[code]<div id=”ahead”>Some Content</div>
<div id=”abar”>Some More Content</div>[/code]

I get about a 2 pixel gap between the two. The result is that rather than having the top and left sides shaded, I have the top shaded, then a break, then the left side shaded. What am I missing?

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@CentauriDec 18.2006 — Your code works fine for me in FF or IE6.

Want to show the full page code or link to test site?

Cheers

Graeme
×

Success!

Help @mwmwnmw 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.28,
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,
)...