5 - Layout/ Positioning Flashcards
What is a tag?
For navigation links ie
<a>HTML</a>
Modified in the CSS with:
nav a {color:#660066;
text-decoration:underline;
font-weight:bold; }
A class tag can modify multiple parts of a page (inlike an id tag). How are they modified?
by using a dot rather than #
ie: .info{font-size:20px}
accesses:
<p></p>
What is used to fix the size of an element?
px.
Tightly controlled but more stable.
What is used for a fluid layout?
%.
Adapts to different viewport sizes but layout can break & images can stretch.
What is used for an elastic layout?
em.
Good for text but can be difficult to get right for layout/ positioning.
Absolute positioning lets you…
specify where on the page you want to place part.
Relative positioning allows you…
to position elements in relation to the page.