Welcome, Guest. Please login or register.
Did you miss your activation email?
May 24, 2012, 07:41:54 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155442 Posts in 21702 Topics by 7734 Members
Latest Member: zvaigzdzius
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: [REOPEND] Small but irritating problem landzilla template  (Read 945 times)
as-lahaye

Offline Offline

Posts: 37


« on: October 08, 2008, 03:52:07 PM »

Hi,

check: www.studio-lahaye.nl/sbwb

When moving the mouse over the menu it shifts (just by a few pixels) but it is enough to move some text on the page "Zwangerschapsfoto's"

I guess it has something to do with the margins and sizes but I can't figure out wich I should edit in the CSS...

Somebody an idea?
« Last Edit: October 08, 2008, 07:30:59 PM by as-lahaye » Logged
aldus

Offline Offline

Posts: 1238


« Reply #1 on: October 08, 2008, 03:57:03 PM »

the only css i see is in line 323 - there is no rule "word-wrap" afask.
you will have to declare it like this:
Code:
white-space: nowrap;

maybe you are also in the need of declare "overflow: hidden" ... don't know.

Regards
Aldus
Logged
as-lahaye

Offline Offline

Posts: 37


« Reply #2 on: October 08, 2008, 04:00:57 PM »

do i have to place 1 of them or both?

so the line "word-wrap" on line 323 has to be replaced with "white-space: nowrap;" or is this an addition?

same goes for overflow: hidden replace or add?

thnx for the quick responce


update:

Placed both, overflow and white-space
still the same problem..
« Last Edit: October 08, 2008, 04:11:39 PM by as-lahaye » Logged
aldus

Offline Offline

Posts: 1238


« Reply #3 on: October 08, 2008, 04:20:37 PM »

not both ... replace, as for the overflow: hidden add ...

as for the pixel-dance it has to do within the following rules:
Code:
#navi li a:hover, #navi li a.current {
border-bottom:1px solid #9A6717;
border-left:5px solid #9A6717;
color:#505050;
}
The border left steps all 5 pixel to right ... hm


Edit:

Got it work here:
Code:
#navi li a:hover, #navi li a.current {
border-bottom:1px solid #9A6717;
border-left:5px solid #9A6717;
color:#505050;
display:block;
margin-left:-5px;
padding-left:6px;
}

Declare as block, move to right left and adjust the left-padding ...

Regards
Aldus
« Last Edit: October 08, 2008, 04:54:32 PM by aldus » Logged
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2294



WWW
« Reply #4 on: October 08, 2008, 06:20:28 PM »

It is much simpler than that.

The #navi li a tag has a 4 pixel left border,  the #navi li a:hover tag has a 5 pixel left border.

Just make them both the same and you're done.

Ruud
Logged

Professional WebsiteBaker Solutions
aldus

Offline Offline

Posts: 1238


« Reply #5 on: October 08, 2008, 06:31:22 PM »

Ruud - you nailed it!  grin
That's the simples one ... cool!

Regards
Aldus
Logged
as-lahaye

Offline Offline

Posts: 37


« Reply #6 on: October 08, 2008, 06:39:13 PM »

Indeed, Ruud did it again!

I knew it was a border problem, only not enough experience to find out wich border I had to change..
Now I read it, it sounds perfectly logical..

Before I ask anything else I will put more effort into it.

thank you guys!
Logged
as-lahaye

Offline Offline

Posts: 37


« Reply #7 on: October 08, 2008, 07:33:41 PM »

I'm sorry to report that both suggested sollutions did not work.

I thought it did but after adding a submenu item all problems began again..

Logged
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2294



WWW
« Reply #8 on: October 08, 2008, 07:52:44 PM »

Well, you should not do both fixes.

Now, when you hover the menu, it jumps left.
Don't do the fix Aldus suggested.

So remove this part:
display:block;
margin-left:-5px;
padding-left:6px;


Ruud
Logged

Professional WebsiteBaker Solutions
as-lahaye

Offline Offline

Posts: 37


« Reply #9 on: October 10, 2008, 10:27:38 AM »

As mentioned to Ruud in a PM:

I restored the CSS file as original and replaced only the colortags and I still have the problem.

move the mouse over the menu: it jumps bij 12px.
take the mouse of the menu, press F5 and move it over again, you'll see what I mean.

Using Ie6 and 7

FF not tested.
Logged
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2294



WWW
« Reply #10 on: October 10, 2008, 10:59:52 AM »

Ok, now I see what you mean.

It is not the normal hovering, but the first time, after (re)loading a page your mouse hits a menu item.

It is probably caused by the table you use.

The left <td> element is set to 210 pixels.
The menu div inside it is 218 pixes, wiith the submenu expanded 228 pixels.
Set the left td to 230 pixels, and you should not see it anymore.


Ruud
Logged

Professional WebsiteBaker Solutions
as-lahaye

Offline Offline

Posts: 37


« Reply #11 on: October 10, 2008, 12:07:24 PM »

this fixes the menu, now i have to look for the text not to shift.

but this is it, thanks Ruud!
Logged
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2294



WWW
« Reply #12 on: October 10, 2008, 12:18:27 PM »

Maybe also size the right <td> element?
The whole thing is 770px. So the right one should be set at 540px.

Ruud

Edit: The problem is you are mixing table and div layouts.
You can size the table, but you must be very careful using things like margins in the div styles.
Now the #navi style has a 15px right-margin. That could very well cause the problem in IE.
« Last Edit: October 10, 2008, 03:23:53 PM by Ruud » Logged

Professional WebsiteBaker Solutions
as-lahaye

Offline Offline

Posts: 37


« Reply #13 on: October 10, 2008, 03:47:07 PM »

i deleted the margins on Navi and Navi div

altough the whole content moved to the left, the menu does not shift anymore.
Now the space between text and menu is permanent 15px or so.
So I have to alter this also..
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!