Topic: Positioning quirk (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=11148" title="Pages that link to Topic: Positioning quirk (Page 1 of 1)" rel="nofollow" >Topic: Positioning quirk <span class="small">(Page 1 of 1)</span>\

 
krets
Paranoid (IV) Mad Scientist

From: KC, KS
Insane since: Nov 2002

posted posted 02-13-2004 00:58

I've just been playing around with a few basic layouts lately and I've run across an interesting quirk.
http://www.11oh1.net/test/journal.html

When I look at that layout in Firebird the "krets.journal" at the top rests right on top of the dark red divider with the tip of the "j" dipping down into the red area. That's what I want.

In IE 6.0 however, the "krets.journal" is about 5 pixels above the red line. I've only tested in so far in those two browsers so I can really speak as to how it would look in others.

I've tried several things so far like setting the line-height to zero and adjust padding, margins, etc but I haven't had any luck.

Any help with this little quandry would be appreciated.

The stylesheet is here:
http://www.11oh1.net/test/ljstyle.css



:::11oh1:::

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 02-13-2004 04:03

try this:

code:
#topper {
position: relative;
background: #414754 /*url(topk.gif) no-repeat scroll bottom right */;
color: #fff;
border-top: 1px solid #616B7E;
border-left: 1px solid #616B7E;
border-right: 1px solid #2d3239;
width: auto;
height: 70px;
z-index: 3;
}

#title {
position:relative;
background-color: transparent;
color: #4D5662;
font-family: arial, helvetica, sans-serif;
font-size: 26px;
letter-spacing: 30px;
margin-top: 45px;
margin-left: 5px;
margin-bottom: -20px;
z-idex: 1;
}



See where I had to add the position: relative and then set the z-index? Then down at the bottom the #title, I set the margin-bottom to -20px.
It worked for me. Give it a try.

Later,

C:\


~Binary is best~

krets
Paranoid (IV) Mad Scientist

From: KC, KS
Insane since: Nov 2002

posted posted 02-13-2004 04:48

It worked even without the z-index. I found that out since you spelled z-index as z-idex and I didn't notice it right away either.

Dern browsers.

Thanks man.

:::11oh1:::

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 02-13-2004 16:08

haha....damn stupid fingers.

well good that it worked. i tried it without the z-index and it wouldn't overlap the topper div.
eigh....it works so that's good

Later,

C:\


~Binary is best~



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu