简体   繁体   中英

half page's width background

I'm trying to create a menu which is divided by 50% width.
this is what i've been trying so far:
http://jsbin.com/gobacewovu/1

so, as you can see, my problem is that the "search" text is invisible. I noticed this problem and created another page, using a "menu" class.
http://jsbin.com/melekitata/1

the problem is now bigger. I was even looking for a solution in this site but I have not found a solution yet, though.

does anyone can help me with that, I'm seriously stuck. thanks.

It is because #look has fixed position, you would need to give #search position: relative; z-index: 1; position: relative; z-index: 1; to place it higher up the stacking order.

CSS

#search {
  position: relative;
  z-index: 1;
}

I'm not completely sure what you are trying to achieve with this layout however but if you give me some more info I can help you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM