RuFFijS Posted January 4, 2011 Report Share Posted January 4, 2011 Sveiki! Radusies sekojoša problēma, atverot lapu ar FF vai IE viss ir skaisti, bet atverot ar google chrome menu sagriežas vertikāli! Bildes uzņemtas atverot ar chrome: 1. menu stāv vertikāli 2. bet pie float right ķeksis jau ir ielikts! 3. izņemot ķeksi un ieliekot atpakaļ menu nostājas savā vietā(4.) ir idejas kāpēc tā? css kods #menu { background:#fff; border-top: 1px solid #fff; overflow:hidden; float:right; margin-top:33px; } #menu ul { margin: 0; padding: 0; text-align: left; } #menu ul li { list-style-type: none; float:left; margin: 0; padding: 0; } #menu ul li a { padding: 5px 5px; margin-top: 10px; text-decoration: none; font-family:"Georgia",Times,serif;; font-size:18px; color: #484848; display:block; border-right:1px solid #fff; } #menu ul li a:hover { background:#fff; color:#a12831; } paldies Quote Link to comment Share on other sites More sharing options...
101111 Posted January 4, 2011 Report Share Posted January 4, 2011 Varbūt #menu ul li { list-style-type: none; float:left; margin: 0; padding: 0; } vietā ieliec #menu ul li { list-style-type: none; display: inline; } Tiešā veidā tas nav risinājums, vienkārši pammainam veidu kā likt saraksta elementiem atrasties horizinotāli. Varbūt šadi gļukos mazāk. Quote Link to comment Share on other sites More sharing options...
RuFFijS Posted January 4, 2011 Author Report Share Posted January 4, 2011 tagad varu ņemt ārā un likt atpakaļ jebkurus ķešus un visu laiku ir vertikāli.. Quote Link to comment Share on other sites More sharing options...
Blitz Posted January 4, 2011 Report Share Posted January 4, 2011 paprovē #menu width uzlikt uz 400px kautvai, mosk sis saspiedies un nelauj kartoties horizontali Quote Link to comment Share on other sites More sharing options...
RuFFijS Posted January 4, 2011 Author Report Share Posted January 4, 2011 to jau pirms tam mēģināju,nepalīdzēja Quote Link to comment Share on other sites More sharing options...
RuFFijS Posted January 5, 2011 Author Report Share Posted January 5, 2011 joprojām aktuāli.. Quote Link to comment Share on other sites More sharing options...
rebuilder Posted January 5, 2011 Report Share Posted January 5, 2011 Iesaku uztaisīt tieši to menu no 0 jaunā failā, un pēc tam veidot stilu, t.i. teksta noformējumu utt. Quote Link to comment Share on other sites More sharing options...
indoom Posted January 5, 2011 Report Share Posted January 5, 2011 Kas ir tas #menu, un kāpēc tam ir float vispār? Tikai li elementiem vajag floatu. Parādi html markupu Quote Link to comment Share on other sites More sharing options...
RuFFijS Posted January 5, 2011 Author Report Share Posted January 5, 2011 <div id="menu"> <ul> <li class="page_item <?php if ( is_home() ) { ?>current_page_item<?php } ?>"></li><?php wp_list_pages('title_li=&depth=0'); ?> </ul> </div> kādi tad vēl ir varianti kā #menu divīziju dabū pie labās malas? sākumā biju aizbīdījis ar top:Xpx un left:Xpx, bet tas neder, jo lapa ir 10 dažādās valodās un katrai menu garums ir savādāks,protams, var uztaisīt katrai valodai savu menu divīziju un bīdīt pa px, bet vai tas ir vajadzīgs... Quote Link to comment Share on other sites More sharing options...
indoom Posted January 6, 2011 Report Share Posted January 6, 2011 (edited) float:right uz li vai arī, ja izmanto display:inline vai tamlīdzīgu, tad uz #menu vai ul var likt text-align:right Edited January 6, 2011 by indoom Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.