Pytanie odnosnie menu w css


(Lord218) #1

Mam pytanie jak zrobić coś takiego jak tu:

http://www.cssplay.co.uk/menus/mini_tabbed_pages.html ?

Lub jeśli mogę pobrać to z tej strony to jak to zrobić?


(Pavobe Reg) #2

CSS:

#info {height:500px; position:relative;}

#adsie {position:absolute; bottom:0;}


/* ================================================================ 

This copyright notice must be untouched at all times.


The original version of this stylesheet and the associated (x)html

is available at http://www.cssplay.co.uk/menus/mini_tabbed_pages.html

Copyright (c) 2005-2007 Stu Nicholls. All rights reserved.

This stylesheet and the associated (x)html may be modified in any 

way to fit your requirements.

=================================================================== */



#tabs {width:400px; text-align:center; background: url(icon/top.gif); margin:30px 0 0 175px; position:absolute; z-index:500;}

#tabs ul {padding:0; margin:0; width:400px; list-style:none; position:relative;}

#tabs ul li {float:left; display:inline; width:125px; height:53px; margin:0 4px;}

#tabs ul li a.outer {display:block; width:125px; height:49px; border-bottom:1px solid #9c9c9c; text-align:center; line-height:45px; text-decoration:none; text-indent:50px; color:#464; font-weight:bold; margin-bottom:3px; font-size:11px;}


#tabs ul li a.one {background:#fff url(icon/world.jpg) top left no-repeat;}

#tabs ul li a.two {background:#fff url(icon/key.jpg) top left no-repeat;}

#tabs ul li a.three {background:#fff url(icon/mail.jpg) top left no-repeat;}

#tabs ul li a.four {background:#fff url(icon/search.jpg) top left no-repeat;}

#tabs ul li a.five {background:#fff url(icon/profile.jpg) top left no-repeat;}

#tabs ul li a.six {background:#fff url(icon/draw.jpg) top left no-repeat;}

#tabs ul li div {display:none;}


#tabs ul li:hover {padding-bottom:132px; border-bottom:1px solid #fff; color:#000; margin-bottom:0;}


#tabs ul li:hover > a.outer {color:#000; background-position:0 -55px; height:55px; cursor:default;}


* html #tabs ul li a.outer:hover {padding-bottom:130px; border-bottom:1px solid #fff; height:55px; color:#000; margin-bottom:0;background-position:0 -55px; height:55px; cursor:default;}


#tabs ul li:hover div {display:block; padding:5px; position:absolute; left:4px; top:55px; width:381px; height:118px; border-bottom:3px solid #fff;}

#tabs ul li a:hover div {display:block; padding:5px; position:absolute; left:4px; top:55px; width:381px; height:118px; border-bottom:3px solid #fff;}


#tabs ul li a:hover div.tab_left,

#tabs ul li:hover div.tab_left

{background:#fff url(icon/tab_left.gif);}


#tabs ul li a:hover div.tab_center,

#tabs ul li:hover div.tab_center

{background:#fff url(icon/tab_center.gif);}


#tabs ul li a:hover div.tab_right,

#tabs ul li:hover div.tab_right

{background:#fff url(icon/tab_right.gif);}


.clear {clear:both; height:0; line-height:0; overflow:hidden;}

#tabs span.base {display:block; height:20px;font-size:10px; color:#bc8f8f; background:url(icon/bottom.gif) bottom;}

#tabs div h5 {font-size:11px; margin-bottom:10px;}

#tabs div p {font-weight:normal; text-align:left; color:#000; margin-top:3px;}

#tabs div a img {border:0;}

#tabs div img.image {float:left; border:0; margin-top:-35px; margin-right:5px;}

#tabs div a.unlock {background:url(icon/unlock.gif); display:block; width:30px; height:30px; margin:0 auto;}

#tabs div a:hover.unlock img {visibility:hidden;}

#tabs p.bold {color:#069; padding-top:5px;}

* html #tabs p.fire {margin-top:-15px;}

* html #tabs form {margin-top:-20px;}

#tabs p.buttons {text-align:center;}

HTML:

Mini tabbed pages - 9th February 2007
-
- WORLD

World Wide Web

This area can hold anything you like, text, images, forms and even links like this one - .
- UNLOCK

Unlock the Secrets
  • MAIL
Email

Maybe a link to your emails or a form asking to login to retrieve your emails, or even a link to a .

  • SEARCH
Search This Site

You can add a search form here.
- PROFILE

Your Profile

login :
- DRAW

Learn how to Draw

Get top-quality design results. Take creative control with seamless vector and bitmap editing.
©2007 Stu Nicholls - All rights reserved
[/code]

Nie sprawdzałem, czy działa...


(Lord218) #3

pavobe wiesz może skąd można się nauczyć takich sztuczek (zaawansowanego css)?

Wiem, że jest tego mnóstwo w sieci, ale może znasz jakieś konkretne stronki.

Był bym wdzięczny za podpowiedź. :wink:


(Pavobe Reg) #4

Szczerze mówiąc, to znam tylko cssplay'a :slight_smile:


(Lord218) #5

No ok, dzięki i za to :wink: