Jump to content
php.lv forumi

"Beta"


waplet

Recommended Posts

  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>

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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...