Yahoo.comのようなマウスオーバでタブを切り替えるインターフェースをCSSで作成『Mini tabbed pages』

« Webデザイン 超基本のお作法50選『MdN Interactive』 | トップ | CSSでバブルタイプのblockquote『Bubble Quote』を作りました。 »

_CSS | 07.02.14 07:54
はてなブックマーク

mini tabbed pages

Yahoo.com


↑のYahoo.comのようなマウスオーバでタブを切り替えるインターフェースが作りたい。

そんなあなたにおすすめなのが、『Mini tabbed pages』。ミニタブページが作成できるCSSを配布してくれている。以前紹介したCSS Playのエントリーだ。

CSSは以下の通り。

<style type="text/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 {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;}
</style>

対応するhtmlは以下の通り。

<div id="tabs">
<p class="bold">Mini tabbed pages - 9th February 2007</p>
<ul>
<li><a href="#nogo" class="one outer">WORLD<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<div class="tab_left">
<h5>World Wide Web</h5>
<p>This area can hold anything you like, text, images, forms and even links like this one - <a href="index.html">Main Menu</a>.</p>
</div>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li><a href="#nogo" class="two outer">UNLOCK<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<div class="tab_center">
<h5>Unlock the Secrets</h5>
<a href="http://www.w3.org/Style/CSS/" class="unlock" title="Unlock the secrets of CSS at w3.org"><img src="icon/lock.gif" alt="Locked" title="Locked" /></a>
</div>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li><a href="#nogo" class="three outer">MAIL<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<div class="tab_right">
<h5>Email</h5>
<p>Maybe a link to your emails or a form asking to login to retrieve your emails, or even a link to a <a href="http://www.cssplay.co.uk/w3c/contact.html">Contact Page</a>.</p>
</div>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
</ul>
<br class="clear" />
<ul>
<li><a href="#nogo" class="four outer">SEARCH<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<div class="tab_left">
<h5>Search This Site</h5>
<p>You can add a search form here.</p>
</div>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li><a href="#nogo" class="five outer">PROFILE<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<div class="tab_center">
<h5>Your Profile</h5>
<form id="two" action="..." method="post">
<fieldset id="personal">
<label for="login">login : </label>
<input name="login" id="login" type="text" tabindex="1" />
</fieldset>
<p class="buttons">
<input id="button1" type="submit" value="Send" />
<input id="button2" type="reset" value="Reset" />
</p>
</form>
</div>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li><a href="#nogo" class="six outer">DRAW<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<div class="tab_right">
<h5>Learn how to Draw</h5>
<a href="http://www.adobe.com/products/fireworks/"><img class="image" src="icon/fireworks.gif" alt="Adobe Fireworks 8" title="Adobe Firerworks 8" /></a>
<p class="fire">Get top-quality design results. Take creative control with seamless vector and bitmap editing.</p>
</div>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
</ul>
<br class="clear" />
<span class="base">&copy;2007 Stu Nicholls - All rights reserved</span>
</div>

Copyrightについては以下のように表記がある。

1. If you are using this on a personal web site then please add a comment and a link back to CSSplay. I would also appreciate a donation to the 'Support CSSplay' fund.

2. If you are using this on a commercial web site then please email me asking for permission - stu{at}cssplay.co.uk and again a donation to the 'Support CSSplay' fund would be appreciated.

1.非商用の場合、CSSplayへのコメントとリンクをつけるようにしてください。
2.商用の場合、私までメール(stu{at}cssplay.co.uk)してください。

とのことだ。

これを使うだけでも珍しいインターフェースが作成できるが、参考にして独自で作っても面白いかもしれない。

ユーザビリティのあるインターフェース、誰もやっていないものを作ってみたいですね。

Editor's Note

これいいな。解析して独自で作ろうか。

わりとさくさくsoap APIをいじる。結構慣れてきました。

Trackback URL :

Comments覧

We can say 15.4 is the peak for price performance portability combination. Chassis of Satellite A300-20P notebook has curved edges and glossy finishes. The curves have stylish appearance. Toshiba s new design pattern Horizon looks very good on this notebook, which adds silver lines. This new design makes Toshiba Satellite A300-20P original, it s good to be able to this good this design around the keyboard too. Click response of the keyboard is excellent, has good key placing, keys are where they are supposed to be (like FN is between CTRL and Windows key) and ENTER key is big for being able to hit it easily.
http://www.cheapestoem.com/products/Buy-Cheap-Adobe-Contribute-CS5-Student-and-Teacher-Edition.html|Adobe Contribute CS5 Student and Teacher Edition
http://www.cheapestoem.com/products/Buy-Cheap-Adobe-Creative-Suite-4-Design-Premium.html|Adobe Creative Suite 4 Design Premium
http://www.cheapestoem.com/products/Buy-Cheap-Adobe-Creative-Suite-4-Master-Collection.html|Adobe Creative Suite 4 Master Collection
http://www.cheapestoem.com/products/Buy-Cheap-Adobe-Creative-Suite-4-Production-Premium.html|Adobe Creative Suite 4 Production Premium
http://www.cheapestoem.com/products/Buy-Cheap-Adobe-Creative-Suite-4-Web-Premium.html|Adobe Creative Suite 4 Web Premium
http://www.cheapestoem.com/products/Buy-Cheap-Adobe-Creative-Suite-5-Design-Premium.html|Adobe Creative Suite 5 Design Premium
http://www.cheapestoem.com/products/Buy-Cheap-Adobe-Creative-Suite-5-Design-Premium-Student-and-Teacher-Edition.html|Adobe Creative Suite 5 Design Premium Student and Teacher Edition
http://www.cheapestoem.com/products/Buy-Cheap-Adobe-Creative-Suite-5-Master-Collection.html|Adobe Creative Suite 5 Master Collection
http://www.cheapestoem.com/products/Buy-Cheap-Adobe-Creative-Suite-5-Master-Collection-Student-and-Teacher-Edition.html|Adobe Creative Suite 5 Master Collection Student and Teacher Edition
http://www.cheapestoem.com/products/Buy-Cheap-Adobe-Creative-Suite-5-Production-Premium.html|Adobe Creative Suite 5 Production Premium
http://www.cheapestoem.com/products/Buy-Cheap-Adobe-Creative-Suite-5-Web-Premium.html|Adobe Creative Suite 5 Web Premium
http://www.cheapestoem.com/products/Buy-Cheap-Adobe-Creative-Suite-5-Web-Premium-Student-and-Teacher-Edition.html|Adobe Creative Suite 5 Web Premium Student and Teacher Edition
http://www.cheapestoem.com/products/Buy-Cheap-Adobe-Creative-Suite-5.5-Design-Premium.html|Adobe Creative Suite 5.5 Design Premium
http://www.cheapestoem.com/products/Buy-Cheap-Adobe-Creative-Suite-5.5-Design-Premium-Student-and-Teacher-Edition.html|Adobe Creative Suite 5.5 Design Premium Student and Teacher Edition
http://www.cheapestoem.com/products/Buy-Cheap-Adobe-Photoshop-Elements-9-[MAC].html|Adobe Photoshop Elements 9 [MAC]
http://www.cheapestoem.com/products/Buy-Cheap-Adobe-Photoshop-Lightroom-2-for-Mac.html|Adobe Photoshop Lightroom 2 for Mac
http://www.cheapestoem.com/products/Buy-Cheap-Adobe-Photoshop-Lightroom-3-for-Mac.html|Adobe Photoshop Lightroom 3 for Mac
http://www.cheapestoem.com/products/Buy-Cheap-Adobe-Premiere-Elements-9-[MAC].html|Adobe Premiere Elements 9 [MAC]
http://www.cheapestoem.com/products/Buy-Cheap-Anime-Studio-Pro-7-[MAC].html|Anime Studio Pro 7 [MAC]
http://www.cheapestoem.com/products/Buy-Cheap-AnotherPOS-Pro-for-MAC.html|AnotherPOS Pro for MAC
http://www.cheapestoem.com/products/Buy-Cheap-Apple-Aperture-3-for-Mac.html|Apple Aperture 3 for Mac
http://www.cheapestoem.com/products/Buy-Cheap-Apple-Final-Cut-Express-4-for-Mac.html|Apple Final Cut Express 4 for Mac
http://www.cheapestoem.com/products/Buy-Cheap-Apple-Final-Cut-Express-HD.html|Apple Final Cut Express HD
http://www.cheapestoem.com/products/Buy-Cheap-Apple-Final-Cut-Server-1.5-for-Mac.html|Apple Final Cut Server 1.5 for Mac
http://www.cheapestoem.com/products/Buy-Cheap-Apple-Final-Cut-Studio-3-Full-Pack-with-Content.html|Apple Final Cut Studio 3 Full Pack with Content
http://www.cheapestoem.com/products/Buy-Cheap-Apple-iLife-'09.html|Apple iLife '09
http://www.cheapestoem.com/products/Buy-Cheap-Apple-iLife-`11.html|Apple iLife `11
http://www.cheapestoem.com/products/Buy-Cheap-Apple-iWork-ツ?09.html|Apple iWork ツ?09
http://www.cheapestoem.com/products/Buy-Cheap-Apple-Logic-Express-9.html|Apple Logic Express 9
http://www.cheapestoem.com/products/Buy-Cheap-Apple-Logic-Studio-9-Full-Pack-with-Content.html|Apple Logic Studio 9 Full Pack with Content
http://www.cheapestoem.com/products/Buy-Cheap-Adobe-Creative-Suite-5.5-Master-Collection.html|Adobe Creative Suite 5.5 Master Collection
http://www.cheapestoem.com/products/Buy-Cheap-Adobe-Creative-Suite-5.5-Production-Premium.html|Adobe Creative Suite 5.5 Production Premium
http://www.cheapestoem.com/products/Buy-Cheap-Adobe-Creative-Suite-5.5-Web-Premium-Student-and-Teacher-Edition-.html|Adobe Creative Suite 5.5 Web Premium Student and Teacher Edition
http://www.cheapestoem.com/products/Buy-Cheap-Adobe-Dreamweaver-CS4.html|Adobe Dreamweaver CS4
http://www.cheapestoem.com/products/Buy-Cheap-Adobe-Dreamweaver-CS5.html|Adobe Dreamweaver CS5
http://www.cheapestoem.com/products/Buy-Cheap-Adobe-Dreamweaver-CS5-Student-and-Teacher-Edition.html|Adobe Dreamweaver CS5 Student and Teacher Edition
http://www.cheapestoem.com/products/Buy-Cheap-Adobe-Dreamweaver-CS5.5.html|Adobe Dreamweaver CS5.5
http://www.cheapestoem.com/products/Buy-Cheap-Adobe-Dreamweaver-CS5.5-Student-and-Teacher-Edition.html|Adobe Dreamweaver CS5.5 Student and Teacher Edition
http://www.cheapestoem.com/products/Buy-Cheap-Adobe-eLearning-Suite.html|Adobe eLearning Suite
http://www.cheapestoem.com/products/Buy-Cheap-Adobe-eLearning-Suite-2.html|Adobe eLearning Suite 2
http://www.cheapestoem.com/products/Buy-Cheap-Adobe-Fireworks-CS4.html|Adobe Fireworks CS4
http://www.cheapestoem.com/products/Buy-Cheap-Adobe-Fireworks-CS5.html|Adobe Fireworks CS5
http://www.cheapestoem.com/products/Buy-Cheap-Adobe-Fireworks-CS5-Student-and-Teacher-Edition.html|Adobe Fireworks CS5 Student and Teacher Edition
http://www.cheapestoem.com/products/Buy-Cheap-Adobe-Flash-Catalyst-CS5.html|Adobe Flash Catalyst CS5
http://www.cheapestoem.com/products/Buy-Cheap-Apple-Remote-Desktop-3-Unlimited-Managed-Systems-edition.html|Apple Remote Desktop 3 Unlimited Managed Systems edition
http://www.cheapestoem.com/products/Buy-Cheap-Apple-Shake-4.1.html|Apple Shake 4.1
http://www.cheapestoem.com/products/Buy-Cheap-Autodesk-AutoCAD-2011-[MAC].html|Autodesk AutoCAD 2011 [MAC]
http://www.cheapestoem.com/products/Buy-Cheap-Autodesk-Maya-2011-[MAC].html|Autodesk Maya 2011 [MAC]
http://www.cheapestoem.com/products/Buy-Cheap-Autodesk-Mudbox-2011-[MAC].html|Autodesk Mudbox 2011 [MAC]
http://www.cheapestoem.com/products/Buy-Cheap-Autopano-Giga-[MAC].html|Autopano Giga [MAC]
These latest microwave ovens provide the benefit of choosing the apt power level from the multiple level options provided. With multi stage cooking facilities you can pre-set the level of cooking so as to cook your half cooked meal till the perfection level without burning them. You can surprise your family by cooking a wide variety of favorite recipes with complete ease and perfection. All this in just a few minutes, with the help of this extremely helpful and promising kitchen gadget. Also, if you have kids at home who like to play havoc with your kitchen accessories, this cooking kitchen appliance is what you should head for. That s because it has a child lock feature which avoids the possibility of it being mishandled by your kids, keeping it safe and away from their reach.

Comment

    Thinkstock
    Newsletter

    このブログをメルマガで購読するには、↓にメールアドレスを入力してください。

    配信:FeedBurner

    Archive

    Category

    Popular Entries

    Archive

    Category