![]() |
3rd level css menu problem - Wersja do druku +- Forum Webmastera, HTML, CSS, PHP, MySQL, Hosting, Domeny - Forum dla Webmasterów (https://www.webmastertalk.pl) +-- Dział: Technologie internetowe - tworzenie stron WWW (https://www.webmastertalk.pl/forum-technologie-internetowe-tworzenie-stron-www) +--- Dział: xHTML, CSS, JavaScript (https://www.webmastertalk.pl/forum-xhtml-css-javascript) +--- Wątek: 3rd level css menu problem (/thread-3rd-level-css-menu-problem) |
3rd level css menu problem - alaneku - 29-04-2012 RE: 3rd level css menu problem - Kartofelek - 29-04-2012 CSS: line 197 You set position to relative. Delete this and leave position:absolute (you set this in 216). RE: 3rd level css menu problem - alaneku - 29-04-2012 RE: 3rd level css menu problem - Kartofelek - 30-04-2012 add this to your css: Kod: .topmenu .level2 {position:relative;} Kod: .topmenu li {position:relative;} Element with position:absolute is positioned to the first parent element with position:relative RE: 3rd level css menu problem - alaneku - 03-05-2012 (30-04-2012, 03:17)kornell napisał(a):(30-04-2012, 00:20)Kartofelek napisał(a): add this to your css: Thank you both for your help the link to the positioning article has help me understand more. However I have tried all combination of relative and absolute I can think of and none of them work. The menu is in a clearfix class does this makes any difference ? here is the html code Kod: <?php if (!defined('CMS')) exit; ?> Both the css and the html are from a theme from a cms (impresspages.org). The original theme had a 2 level drop down. I modified the css for a 3 level drop down. I had a look at this three level menu in a clearfix class: http://css.find-info.ru/css/011/ch07lev1sec4.html and there seems to be no relative or absolute positioning in the lower levels. Now I am even more confused!!! Alan RE: 3rd level css menu problem - Kartofelek - 04-05-2012 Yep. they have position:relative Kod: <ul> RE: 3rd level css menu problem - alaneku - 04-05-2012 Many many thanks to both of you, now the menu works at last. I will go back again and clean up the complete mess I had made of the file by chaning everything I could think of - a good learning experience for me !!!! It was the Kod: .topmenu li { that made the difference. What threw me is that this line was not in the original code for the 2 level version of the menu that I modified. Much appreciated. Alan |