Jump to content
php.lv forumi

Recommended Posts

Posted

  div#menu{
   float:left;
   width:470px;
   height:100px;
   z-index:3;
   position:relative;
 }
 div#beta{
   width:80px;
   height:80px;
   background: url(images/beta.png);
   position:absolute;
   top:-3px;/*some of #wraphead pixels*/
   left:-8px;/* - PADDING no #wrapcont + the shadow = 15 + 7*/
   z-index:1;
 }

 

Kāpēc beta pārsedz #menu?

        <div id="menu">
         <ul id="ulmenu">
           <li><a class="menulink selected" href="./">Home</a></li>
           <li><a class="menulink" href="./">About</a></li>
         </ul>
         <div id="beta">
       </div>

Posted

Varbūt vienkārši sādi?

  <div id="menu">
         <ul id="ulmenu">
           <li><a class="menulink selected" href="./">Home</a></li>
           <li><a class="menulink" href="./">About</a></li>
         </ul>
</div>
     <div id="beta"></div>

Posted

Uztaisīju tā , pielieku #menu vēl position:relative; un aizgāja.

Cik noprotu, tad elementiem, kas rīkoja ap z-index, tad vajadzēs pozicionēšanu?

Vai arī tas tāpēc, ka #beta piešķirts position:absolute;? vai arī tāpēc, ka $('div#menu').parent() position ir relative?

Posted

Pag, problēma ir tā, ka Elementam BĒRNS NEvar attēloties AIZ vecāka elementa, tas vienkārši nav iespējams, viņš vienmēr būs pa virsu vecāka elementam.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...