SlideShare uma empresa Scribd logo
1 de 8
Lecture 2
HTML/CSS – Part 2
LISTS                                         <ul>
 UL – Unordered List
 OL – Ordered List
 LI – List Item




                                               <ol>




Examples via: http://reference.sitepoint.com
p{
 color:red;
 text-align:center;
 }


Examples via: http://www.w3schools.com/css/css_syntax.asp
The id Selector
The id selector is used to specify a style for a single, unique element.
The id selector uses the id attribute of the HTML element, and is defined with a "#".

      #example{                             <div id=“example”>
      color: #f4f4f6;                       Lorem ipsum dolor sit amet.
      font-weight:bold;                     </div>
      }



The class Selector
The class selector is used to specify a style for a group of elements. Unlike the id selector,
the class selector is most often used on several elements.
This allows you to set a particular style for many HTML elements with the same class.
The class selector uses the HTML class attribute, and is defined with a "."

  .example{                   <div class=“example”>             <div class=“example”>
  color: #f4f4f6;             Lorem ipsum dolor sit amet.       Lorem ipsum dolor sit amet.
  font-weight:bold;           </div>                            </div>
  }
Display




http://www.w3schools.com/Css/tryit.asp?filename=trycss_display

 A block element is an element that takes up the full width available, and has a line break
 before and after it.

 An inline element only takes up as much width as necessary, and does not force line
 breaks.
Position
The CSS positioning properties allow you to position an element. It can also place an element
behind another, and specify what should happen when an element's content is too big.


 relative
 A relative
 positioned
 element is
 positioned                                                       Example via: http://reference.sitepoint.com/css/position
 relative to its
 normal position.




absolute
The value absolute generates an absolutely positioned box that’s                   #example{
positioned relative to its containing block. The position can be specified         position: absolute;
using one or more of the properties top, right, bottom, and left.                  top: 10px;
Absolutely positioned boxes are removed from the flow and have no                  left: 10px;
effect on later siblings. Margins on absolutely positioned boxes never
                                                                                   }
collapse with margins on other boxes.
Float
   This property specifies whether or not a box should float and, if so, if it should float to the left or
   to the right. A floating box is shifted to the left or to the right as far as it can go, and non-floating
   content in the normal flow will flow around it on the opposite side. The float property is ignored
   for elements that are absolutely positioned. User agents are also allowed to ignore it when it’s
   applied to the root element.



   Turning off Float - Using Clear
   Elements after the floating element will flow around it. To avoid this, use the clear property.
   The clear property specifies which sides of an element other floating elements are not allowed.




      left                                                                                                right




Text via: http://reference.sitepoint.com/css/float & http://www.w3schools.com/css/css_float.asp
Clear
The clear property specifies which sides of an element where other floating elements
are not allowed.

Mais conteúdo relacionado

Destaque

лагерь 1 сез 2010
лагерь 1 сез 2010лагерь 1 сез 2010
лагерь 1 сез 2010elvira38
 
Compete Group Evaluations
Compete Group EvaluationsCompete Group Evaluations
Compete Group EvaluationsJack Parsons
 
Whitby Seafoods - Office Refurbishment Project
Whitby Seafoods - Office Refurbishment ProjectWhitby Seafoods - Office Refurbishment Project
Whitby Seafoods - Office Refurbishment ProjectNeil Emmott
 
Презентация П.Хауза на расширенное совещание АО "Самрук-Қазына" 07.02.2013
Презентация П.Хауза на расширенное совещание АО "Самрук-Қазына" 07.02.2013Презентация П.Хауза на расширенное совещание АО "Самрук-Қазына" 07.02.2013
Презентация П.Хауза на расширенное совещание АО "Самрук-Қазына" 07.02.2013АО "Самрук-Казына"
 
Shopping items
Shopping itemsShopping items
Shopping itemsLes Davy
 
Educ 2190 mathematics stage 5 – year 10 – statistics
Educ 2190   mathematics stage 5 – year 10 – statisticsEduc 2190   mathematics stage 5 – year 10 – statistics
Educ 2190 mathematics stage 5 – year 10 – statisticsMatthew Lovegrove
 
13 collections
13   collections13   collections
13 collectionsTuan Ngo
 
Ervasti: Kouluympäristö hyvinvoinnin tekijänä
Ervasti: Kouluympäristö hyvinvoinnin tekijänäErvasti: Kouluympäristö hyvinvoinnin tekijänä
Ervasti: Kouluympäristö hyvinvoinnin tekijänäKouluterveyskysely
 
All you need know about testing
All you need know about testingAll you need know about testing
All you need know about testingJorge Barroso
 
Amigos del colegio la salle
Amigos del colegio la salleAmigos del colegio la salle
Amigos del colegio la sallenrosero
 
10 planete infricosatoare
10 planete infricosatoare10 planete infricosatoare
10 planete infricosatoarebalada65
 

Destaque (20)

лагерь 1 сез 2010
лагерь 1 сез 2010лагерь 1 сез 2010
лагерь 1 сез 2010
 
Compete Group Evaluations
Compete Group EvaluationsCompete Group Evaluations
Compete Group Evaluations
 
Module 3
Module 3Module 3
Module 3
 
Whitby Seafoods - Office Refurbishment Project
Whitby Seafoods - Office Refurbishment ProjectWhitby Seafoods - Office Refurbishment Project
Whitby Seafoods - Office Refurbishment Project
 
Презентация П.Хауза на расширенное совещание АО "Самрук-Қазына" 07.02.2013
Презентация П.Хауза на расширенное совещание АО "Самрук-Қазына" 07.02.2013Презентация П.Хауза на расширенное совещание АО "Самрук-Қазына" 07.02.2013
Презентация П.Хауза на расширенное совещание АО "Самрук-Қазына" 07.02.2013
 
Shopping items
Shopping itemsShopping items
Shopping items
 
Витал Слип
Витал СлипВитал Слип
Витал Слип
 
Educ 2190 mathematics stage 5 – year 10 – statistics
Educ 2190   mathematics stage 5 – year 10 – statisticsEduc 2190   mathematics stage 5 – year 10 – statistics
Educ 2190 mathematics stage 5 – year 10 – statistics
 
03 02 wh_chris_walker
03 02 wh_chris_walker03 02 wh_chris_walker
03 02 wh_chris_walker
 
slope and one point
slope and one pointslope and one point
slope and one point
 
13 collections
13   collections13   collections
13 collections
 
Kudavi 3.3.2016
Kudavi 3.3.2016Kudavi 3.3.2016
Kudavi 3.3.2016
 
Ervasti: Kouluympäristö hyvinvoinnin tekijänä
Ervasti: Kouluympäristö hyvinvoinnin tekijänäErvasti: Kouluympäristö hyvinvoinnin tekijänä
Ervasti: Kouluympäristö hyvinvoinnin tekijänä
 
Global warming
Global warmingGlobal warming
Global warming
 
All you need know about testing
All you need know about testingAll you need know about testing
All you need know about testing
 
Fm1(a) genre
Fm1(a)   genreFm1(a)   genre
Fm1(a) genre
 
Fails!
Fails!Fails!
Fails!
 
Asw feb13 low
Asw feb13 lowAsw feb13 low
Asw feb13 low
 
Amigos del colegio la salle
Amigos del colegio la salleAmigos del colegio la salle
Amigos del colegio la salle
 
10 planete infricosatoare
10 planete infricosatoare10 planete infricosatoare
10 planete infricosatoare
 

Semelhante a Lesson2 (20)

Lesson 3 - HTML & CSS Part 2
Lesson 3 - HTML & CSS Part 2Lesson 3 - HTML & CSS Part 2
Lesson 3 - HTML & CSS Part 2
 
Css advanced – session 4
Css advanced – session 4Css advanced – session 4
Css advanced – session 4
 
Css Introduction
Css IntroductionCss Introduction
Css Introduction
 
Advanced Cascading Style Sheets
Advanced Cascading Style SheetsAdvanced Cascading Style Sheets
Advanced Cascading Style Sheets
 
Chapter6
Chapter6Chapter6
Chapter6
 
CSS_Dibbo
CSS_DibboCSS_Dibbo
CSS_Dibbo
 
1. Advanced Web Designing (12th IT) (1).pdf
1. Advanced Web Designing (12th IT) (1).pdf1. Advanced Web Designing (12th IT) (1).pdf
1. Advanced Web Designing (12th IT) (1).pdf
 
How Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) WorksHow Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) Works
 
My 70-480 HTML5 certification learning
My 70-480 HTML5 certification learningMy 70-480 HTML5 certification learning
My 70-480 HTML5 certification learning
 
css.pdf
css.pdfcss.pdf
css.pdf
 
CSS Introduction
CSS IntroductionCSS Introduction
CSS Introduction
 
Basic css
Basic cssBasic css
Basic css
 
Css selectors
Css selectorsCss selectors
Css selectors
 
Lecture2 CSS 2
Lecture2  CSS 2Lecture2  CSS 2
Lecture2 CSS 2
 
Floating
FloatingFloating
Floating
 
Css class-02
Css class-02Css class-02
Css class-02
 
Designing for the web - 101
Designing for the web - 101Designing for the web - 101
Designing for the web - 101
 
CSS
CSSCSS
CSS
 
Floating power point
Floating power pointFloating power point
Floating power point
 
Intro to HTML and CSS basics
Intro to HTML and CSS basicsIntro to HTML and CSS basics
Intro to HTML and CSS basics
 

Mais de hstryk

CSS - Text Properties
CSS - Text PropertiesCSS - Text Properties
CSS - Text Propertieshstryk
 
Lesson1 - Fall 2013
Lesson1 - Fall 2013Lesson1 - Fall 2013
Lesson1 - Fall 2013hstryk
 
Lesson2
Lesson2Lesson2
Lesson2hstryk
 
CSS3 Transitions
CSS3 TransitionsCSS3 Transitions
CSS3 Transitionshstryk
 
CSS Layout Tutorial
CSS Layout TutorialCSS Layout Tutorial
CSS Layout Tutorialhstryk
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3hstryk
 
Sprites rollovers
Sprites rolloversSprites rollovers
Sprites rollovershstryk
 
Building a Website from Planning to Photoshop Mockup to HTML/CSS
Building a Website from Planning to Photoshop Mockup to HTML/CSSBuilding a Website from Planning to Photoshop Mockup to HTML/CSS
Building a Website from Planning to Photoshop Mockup to HTML/CSShstryk
 
Lecture4
Lecture4Lecture4
Lecture4hstryk
 
Tutorial1 - Part 2
Tutorial1 - Part 2Tutorial1 - Part 2
Tutorial1 - Part 2hstryk
 
Tutorial1
Tutorial1Tutorial1
Tutorial1hstryk
 
Project1
Project1Project1
Project1hstryk
 
Lesson 3
Lesson 3Lesson 3
Lesson 3hstryk
 
Lesson1
Lesson1Lesson1
Lesson1hstryk
 
Heather Strycharz - Resume
Heather Strycharz - ResumeHeather Strycharz - Resume
Heather Strycharz - Resumehstryk
 

Mais de hstryk (15)

CSS - Text Properties
CSS - Text PropertiesCSS - Text Properties
CSS - Text Properties
 
Lesson1 - Fall 2013
Lesson1 - Fall 2013Lesson1 - Fall 2013
Lesson1 - Fall 2013
 
Lesson2
Lesson2Lesson2
Lesson2
 
CSS3 Transitions
CSS3 TransitionsCSS3 Transitions
CSS3 Transitions
 
CSS Layout Tutorial
CSS Layout TutorialCSS Layout Tutorial
CSS Layout Tutorial
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3
 
Sprites rollovers
Sprites rolloversSprites rollovers
Sprites rollovers
 
Building a Website from Planning to Photoshop Mockup to HTML/CSS
Building a Website from Planning to Photoshop Mockup to HTML/CSSBuilding a Website from Planning to Photoshop Mockup to HTML/CSS
Building a Website from Planning to Photoshop Mockup to HTML/CSS
 
Lecture4
Lecture4Lecture4
Lecture4
 
Tutorial1 - Part 2
Tutorial1 - Part 2Tutorial1 - Part 2
Tutorial1 - Part 2
 
Tutorial1
Tutorial1Tutorial1
Tutorial1
 
Project1
Project1Project1
Project1
 
Lesson 3
Lesson 3Lesson 3
Lesson 3
 
Lesson1
Lesson1Lesson1
Lesson1
 
Heather Strycharz - Resume
Heather Strycharz - ResumeHeather Strycharz - Resume
Heather Strycharz - Resume
 

Último

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 

Último (20)

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 

Lesson2

  • 2. LISTS <ul> UL – Unordered List OL – Ordered List LI – List Item <ol> Examples via: http://reference.sitepoint.com
  • 3. p{ color:red; text-align:center; } Examples via: http://www.w3schools.com/css/css_syntax.asp
  • 4. The id Selector The id selector is used to specify a style for a single, unique element. The id selector uses the id attribute of the HTML element, and is defined with a "#". #example{ <div id=“example”> color: #f4f4f6; Lorem ipsum dolor sit amet. font-weight:bold; </div> } The class Selector The class selector is used to specify a style for a group of elements. Unlike the id selector, the class selector is most often used on several elements. This allows you to set a particular style for many HTML elements with the same class. The class selector uses the HTML class attribute, and is defined with a "." .example{ <div class=“example”> <div class=“example”> color: #f4f4f6; Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. font-weight:bold; </div> </div> }
  • 5. Display http://www.w3schools.com/Css/tryit.asp?filename=trycss_display A block element is an element that takes up the full width available, and has a line break before and after it. An inline element only takes up as much width as necessary, and does not force line breaks.
  • 6. Position The CSS positioning properties allow you to position an element. It can also place an element behind another, and specify what should happen when an element's content is too big. relative A relative positioned element is positioned Example via: http://reference.sitepoint.com/css/position relative to its normal position. absolute The value absolute generates an absolutely positioned box that’s #example{ positioned relative to its containing block. The position can be specified position: absolute; using one or more of the properties top, right, bottom, and left. top: 10px; Absolutely positioned boxes are removed from the flow and have no left: 10px; effect on later siblings. Margins on absolutely positioned boxes never } collapse with margins on other boxes.
  • 7. Float This property specifies whether or not a box should float and, if so, if it should float to the left or to the right. A floating box is shifted to the left or to the right as far as it can go, and non-floating content in the normal flow will flow around it on the opposite side. The float property is ignored for elements that are absolutely positioned. User agents are also allowed to ignore it when it’s applied to the root element. Turning off Float - Using Clear Elements after the floating element will flow around it. To avoid this, use the clear property. The clear property specifies which sides of an element other floating elements are not allowed. left right Text via: http://reference.sitepoint.com/css/float & http://www.w3schools.com/css/css_float.asp
  • 8. Clear The clear property specifies which sides of an element where other floating elements are not allowed.