Page 1 of 1
Safari; CSS drop down menu problem
Posted: Fri Aug 29, 2008 1:16 pm
by surogat
Hello,
It seems that my drop down menu doesn't work, because there is
a space between main and sub menu (like 1px padding). I was
trying to figure why that space appears, but i can't see it.
That space somehow breaks connection between two menus,
so i can't select anything from the bottom one.
It seems that is only Safari issue..
I attached two pics (IE and Safari)
Site is
http://www.univie.ac.at/POTREBA/
So if anyone see the problem help please.
Thanx
Re: Safari; CSS drop down menu problem
Posted: Fri Aug 29, 2008 7:55 pm
by Dr.CSS
Try giving your second ul a -1px margin at the top for safari...
Re: Safari; CSS drop down menu problem
Posted: Sun Aug 31, 2008 7:41 pm
by surogat
Thanx,
I've tried, but it didn't worked, but
it works since I put margin 1px to top menu.
But now everything "hangs" fot that pixel..
But this CSS acts strange anyway..
I have one more, hoping no so stupid
question : How to address specific line of
code to safari? can you write me an example please.
Thanx again,
Re: Safari; CSS drop down menu problem
Posted: Tue Sep 02, 2008 7:19 am
by Russ
Hi surogat , looking at your site, I think the best approach is to get the HTML to validate first. Before you do anything else, failure to do so will result in pointless effort. You can get very strange results with invalid code!
When you have done that then have a look at making your CSS valid as well, or at least know why exactly the validation is failing. e.g. you are doing it deliberately.
These should be the first steps before attempting anything else.
Russ
Re: Safari; CSS drop down menu problem
Posted: Tue Sep 02, 2008 12:31 pm
by surogat
Russ wrote:
When you have done that then have a look at making your CSS valid as well, or at least know why exactly the validation is failing. e.g. you are doing it deliberately.
These should be the first steps before attempting anything else.
Russ
I've clean up css and now it's validated, but still it works strange in safari;
sometimes I can select submenu, and sometimes I can't. I hate those type of errors..
Menu works fine in IE and Firefox.
Re: Safari; CSS drop down menu problem
Posted: Tue Sep 02, 2008 12:53 pm
by Russ
Re: Safari; CSS drop down menu problem
Posted: Wed Sep 03, 2008 7:30 am
by surogat
Now it's valid. But still don't know why is acting strange in Safari.
But it looks much better than in any other browser

Tnx