background preloader

CSS

Facebook Twitter

CSS UL LI - Horizontal CSS Menu. Second Picture is devoted to original tutorials about 3D graphics, Photoshop, Photography and Web Design. 31.10.2008 Category: Web Design In this tutorial we're going to create a professional horizontal CSS menu. First we are going to create a HTML list by using Unordered List (ul) and List Item (li) elements. Then we are going to style the list with CSS (Cascading Style Sheets) into the form of a horizontal navigation menu like in Picture 1. Picture 1. Horizontal navigation menu that is made with HTML UL and LI elements and styled with CSS.

Previous knowledge about some basic HTML and CSS is required. HTML elements used in this tutorial: ul (Unordered List) li (List Item) a (Anchor / Link) This is a CSS tutorial so I'm not going to go through the creation of the graphics used in this tutorial. HTML List (ul li) With Links Let's start by creating a list with links in HTML: ul tags define the whole list and each list element is defined with li tags. Picture 2. UL CSS Styling Picture 3. Expanding CSS list menu tutorial - Horizontal menus that grow!

In this quick tutorial, I’m going to discuss how to create a neat little menu effect. I’m dubbing it the liDock, because elements in the menu resize as the mouse moves over them, similar to the dock on OS-X, and because it’s a list menu. We’re going to create a horizontal row of boxes containing link text. When we move the mouse over one of these boxes, it’s going to get taller and the text larger and bold. I’ll link to a finished example at the end of the tutorial. Let’s begin by setting up the XHTML for the menu. [html] [/html] As I said, nothing much to see there, just your basic list. Let’s start by applying our styles for the list container itself. Now we need to set up the styles for the list items. As you can see, we’re creating a 60×60px square and then floating all of the elements so they’ll line up horizontally.

Now that we’ve done that, we need to style our links. We’re going to start by defining our width, height and padding. Now let’s do some visual styling on the font. Horizontales Dropdown-Menü. Im Laufe der Zeit nimmt der Umfang einer Website immer mehr zu, Inhalte und Themen werden erweitert und irgendwann gibt es Platzprobleme bei der Navigation. Oder man hat von vornherein einen umfangreichen Inhalt, erstellt z.B. eine Vereins-Website mit vielen Sparten und Abteilungen.

Wie soll man da noch übersichtlich navigieren? Nun, ein sogenanntes "Drop-Down-Menü" oder eine "Ausklapp-Navi" macht's möglich. In der Umsetzung oft gefürchtet, aber mit etwas Überlegung und System dennoch machbar. Mit einer "Schritt-für-Schritt-Anleitung" werden wir nachfolgend auch dieses Problem meistern. Dass unsere "Klapp-Navi" auch "klappen" wird, zeigt das vorweggenommene Ergebnis unserer Demo . 1.1. Beginnen wir mit dem HTML-Code, den wir anschließend per CSS in Szene setzen. <h3>Thema 1</h3> <li><a href="#">Thema 1.1</a></li> <li><a href="#">Thema 1.2</a></li> <li><a href="#">Thema 1.3</a></li> Kopiert euch diesen Code und fügt ihn innerhalb eures body ein. 1.2. 2. 3. 4. 5. 6. 7. 8. 9. 10. <ul><! 11. Designing Drop-Down Menus: Examples and Best Practices. Advertisement As a general rule, most Web developers, especially usability enthusiasts, say it is bad practice to use drop-down menus because they are confusing, annoying and oftentimes dysfunctional.

From a design standpoint, however, drop-down menus are an excellent feature because they help clean up a busy layout. If structured correctly, drop-down menus can be a great navigation tool, while still being a usable and attractive design feature. Yes, that’s right: drop-down navigation menus can be user-friendly. Just yesterday Jacob Nielsen the results of his recent drop-down menus study1, in which he found out that big, two-dimensional drop-down panels that group navigation options help users to avoid scrolling and can precisely explain the user’s choices with effective use of typography, icons, and tooltips. These panels appear temporarily and disappear on their own when users move the pointer to another top-level option or to a “regular” part of the screen. Where To Use Drop-Down Menus. Rozwijane menu poziome w CSS - Webmastering i Technologie - artykuły, poradniki, recenzje, nowości - WEBroad.pl.

Ostatnimi czasy niezwykle popularne, przy tworzeniu stron www, stało się używanie rozwijanego menu. Jest to bardzo estetyczny sposób na wykonanie nawigacji, która może znacząco poprawić wygodę poruszania się po sieci. Co więcej, użytkownik strony nie zgubi się tak szybko w gąszczu różnorakich linków, co w przypadku rozbudowanego serwisu może okazać się bardzo prawdopodobne. Rozwijane menu możemy stworzyć na 2 sposoby. Pierwszym z nich jest użycie JavaScript. Odradzam jednak tę opcję, ponieważ w przypadku gdy internauta posiadał będzie przeglądarkę z wyłączoną obsługą JS, nasze menu w nie wyświetli się na ekranie w sposób zamierzony, co spowoduje “rozjechanie się” strony. Przeczytaj artykuł o tym, jak zbudować rozwijane menu, w oparciu o CSS3 > Rozwijane menu z wykorzystaniem CSS3Zobacz, jak zbudować menu wielopoziomowe > Rozwijane menu wielopoziomowe Ta metoda jest bardziej bezpieczna, więc to na niej się skupimy. Zacznijmy od utworzenia nowego pliku index.htm. A oto uzyskany efekt:

DynamiX Labs » preload. DynamiX Labs » loading icon. HowTo: HTML Tooltips mit CSS. Informationen sind das A und O jedes Internetportals, leider ist aber oftmals nicht genug Platz um alle wichtigen Informationen sofort anzuzeigen oder es gibt Infos die zweitrangig sind und beispielsweise nur angezeigt werden wenn man mit der Maus über ein bestimmtes Icon fährt. Es gibt dafür diverse JavaScript Lösungen, die eleganteste davon ist wahrscheinlich Prototip ein Addon für Prototype, ich persönliche finde diese Javascriptlösungen ein wenig unschön.

Eine wie ich finde, sehr elegante Lösung die ich auch regelmäßig nutze sieht folgendermaßen aus: HTML Grundgerüst: <a href="#hint" class="tooltip"><img src="fragezeichen.gif" /><span class="info">Informationen die erst beim überfahren der Maus angezeigt werden</span></a> Die CSS-Datei Es wird also einfach nur ein Link erstellt, der die Klasse “tooltip” zugewiesen bekommt und einen Span-Tag mit der Klasse “info” bekommt. Weitere Möglichkeiten: 40 Scripts für Tooltips. Build Professional CSS/DHTML Menu For Your Website Just For Free! By AN Jay on March 17, 2008 Build Professional CSS/DHTML Menu For Your Website Just For Free! Don't Forget to participate in a contest where you can win an amazing e-Commerce template from TemplateMonster.

Now you can create professional looking CSS menus for your Website as easy as never before. Build your cool menu online, without writing a single line of code! This is IzzyMenu – it’s easy to use Menu Builder, which allows you to build your CSS & DHTML menu in minutes. Choose from dozens ready styles or create your own menu style. This online menu generator is the best solution for amateurs and professionals! If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader. How To Create Tabbed Structure Menu Using CSS And jQuery? A Tutorial By Nettuts! CSS Tutorial. CSS Beauty | Gallery. CSS Beauty | Gallery.