140 likes | 256 Vues
Elevate your web design skills with advanced navigation menu techniques using CSS. Learn how to style menus, create clickable buttons, adjust margins, add borders, and integrate iframes for a seamless user experience. Dive deep into CSS attributes to customize your website's navigation efficiently.
E N D
HTML CSS Intermediate Group Week 3, National Software Centre, Mahon
Week Two - Recap HTML CSS • Tables <table>, <th>, <tr> and <td> • Sections <section> • Navigation Menus <nav>, <ol>/<ul>, <li> and <a> • Tables (borders, background colours, colours, text align) • Sections (background colours, borders) • Navigation Menus (links, colours, horizontal/vertical)
Question Time! A Recap on New Tags From Week 2
Question Time! • What is this? • What do the individual tags mean? • What is its function?
Question Time! • What does this add to our page? • What do the following tags mean?: - <imgsrc> - <alt>
Question Time! What is this? What do the individual tags mean? What is its function?
Question Time! What does this affect? What do the letters “th” and “td” mean? What do the individual lines mean?
Question Time! • What does this affect? • What do the letters “ul” and “li” mean? • What does “display: inline” do?
Week 3 Navigation Menus and Iframes
Nav Menus - CSS • Today we’re going to start by doing some CSS • display: block makes the whole button of our link ‘clickable’ and not just the text • display: inline makes our links (a) horizontal
Nav Menus - CSS • Next, we’re going to specify the space around and between the links. • The space between the links is called a ‘margin’.
Nav Menus - CSS • Our menus look really cool, but still a bit hard to read. Let’s add a background colour to make it stand out more. • I’ve added black as my background colour.
Nav Menus - CSS • Now let’s add a border to our navigation menu. • Adding a border to a menu is the same as adding one to a page or a table. • I also added the “display: inline” tag to the nav > ul > li to make sure everything is inline.
Iframes • Iframes allow us to integrate another website into our own webpage (it’s really cool). • To make an iframe, we use the <iframe> and <src> tags. • The <height> and <width> tags can be used to make the frame bigger or smaller.