Movatterモバイル変換


[0]ホーム

URL:


11,892 views

Introduction to HTML and CSS

This document summarizes a knowledge sharing session on HTML and CSS basics. It covers topics like HTML tags and structures, CSS rules and selectors, the CSS box model, positioning, sprites, and hacks for dealing with browser inconsistencies. The session introduced fundamental concepts for using HTML to structure content and CSS for styling and layout, providing examples for common tags, selectors, properties and techniques. It aimed to give attendees an overview of the core building blocks of HTML and CSS.

Embed presentation

Knowledge Sharing Session onHTML and CSSBasic HTML and CSSFerdous Mahmud ShaonFebruary 2014
HTML, XHTML, HTML5
HTML Tags and Nested Tags
HTML Basic Structure
HTML <head> and <title>
HTML <body>
HTML Headlines
HTML Paragraphs
HTML Lists
HTML Divisions (sections)
HTML Images
HTML form
HTML frameset• Not recommended tag• Not supported in HTML5
HTML tables
HTML Block vs Inline elements• Block Elements– Takes up the full width available, and has a linebreak before and after it.– <p>, <div>, <h1>…. <h6>, <ul>, <ol>, <li>, <table>• Inline Elements– Takes up only as much width as necessary, anddoes not force line breaks after it.– <a>, <span>, <img>
HTML Block elements
HTML Block Elements
HTML Inline Elements
HTML Table vs DIV• Most websites have put their content in multiple columns.• Multiple columns can be created by using <div> or <table>elements.• Even though it is possible to create nice layouts with HTMLtables, tables were designed for presenting tabular data -NOT as a layout tool!• The div element is used for grouping HTML elements andfor creating rows and columns with the help of CSS.
HTML Page Layout
HTML Layout
HTML Layout
HTML Layout
HTML Layout
HTML <!DOCTYPE>• Must be the very first thing in HTML document,even before the <html> tag• Provides information to the web browser aboutwhat version of HTML the page is written in.• In HTML 4, the <!DOCTYPE> declaration refers to aDTD, but in HTML5, the <!DOCTYPE> declarationdoes NOT refer to any DTD.
HTML <!DOCTYPE>
HTML Character Entities
HTML vs XHTMLXHTML– eXtensible HyperText Markup Language– Stricter and cleaner version of HTML similar toXML– Better cross browser support
HTML vs XHTMLXHTML DOCTYPE– mandatoryXHTML elements– must be properly nested– must always be closed– must be in lowercase– must have one root elementXHTML attributes– names must be in lower case– values must be quoted– minimization is forbidden• <input type="checkbox" checked="checked" />• <input disabled="disabled" />
SEO friendly HTML• Meaningful and relevant HTML <title> per page• Define <meta> description and keywords for each page.<meta name="description" content="Free Web tutorials on HTML and CSS"><meta name="keywords" content="HTML, CSS, XML, XHTML, JavaScript">• Use an <h1> tag for the main headline of the page. It shouldn’t bemore than one in a single page.• Relevant sub-headlines should use an <h2>…<h6> tags according totheir priority.• Avoid embedded JS and CSS whenever possible. Try to use externalCSS and JS and if possible minimize them.
New HTML5 Tags• <canvas> defines graphic drawing usingJavaScript• <audio> defines sound or music content• <video> defines video or movie content• <header> defines a header for the documentor a section• <nav> defines navigation links in the document
New HTML5 Tags• <section> defines a section in the document• <main> defines the main content of adocument• <article> defines an article in the document• <footer> defines a footer for the document ora section• <figure> defines self-contained content, likeillustrations, diagrams, photos etc.
HTML Style Elements<font>, <strong>, <b>, <u>, <i>, <em>, <center>
What is CSS?• Cascading Style Sheets• Defines how to display HTML elements• Added to HTML 4.0• Current version is CSS 2.• CSS 3 is also released and supported by mostof the browsers.
How to use CSS
CSS Rules
CSS Selectors
CSS Selectors
CSS Selectors
Multiple CSS Rules
Multiple CSS Rules
CSS Selector Priority
CSS class vs id selector
CSS Descendent Selector
CSS Descendent Selector
CSS Box Model (block element)
CSS Box Model (block element)
CSS Box Model (block element)
CSS Box Model – Margin Collapse
CSS Box Model – Margin Collapse
CSS Box Model – Margin Collapse
CSS Box Model – Margin Collapse
CSS Box Model – Margin Collapse
CSS Box Model (inline element)
CSS Box Model (inline element)
CSS Box Model Shortcuts
CSS Box Model Dimensions
CSS Box Model and Box Sizing• CSS3 Property– box-sizing: content-box; /* Default value */– box-sizing: border-box; /* Grid in Twitter Bootstrap */
CSS Dimension• height– Sets the height of an element• max-height– Sets the maximum height of an element• min-height– Sets the minimum height of an element• width– Sets the width of an element• max-width– Sets the maximum width of an element• min-width– Sets the minimum width of an element
Display and Visibility• Hiding an Element– display:none (doesn’t take space)– visibility:hidden (takes space)• Styling block / inline HTML Element– ul.menu li { display:inline; }– div.data span { display:block; }
Building Menu using HTML & CSS
Building Menu using HTML & CSS
CSS ‘position’ Property• static– default value– not affected by top, right, bottom, left• relative– positioned relative to its normal position• absolute– positioned relative to the nearest relatively positioned ancestor– if no relatively positioned ancestors, then it uses the document body• fixed– positioned relative to the viewport– always stays in the same place even if the page is scrolled.
CSS Relative Positioning
CSS Absolute Positioning
CSS Relative and Absolute Positioning
CSS Fixed Positioning
CSS Floating
CSS Floating Problem
CSS Floating Issues
CSS Floating Issues
CSS Floating Issues
Grouping and Nesting Selectors• Grouping Selectors– div, p, span {font-family: "Helvetica Neue", Arial, Helvetica;}• Nesting Selectors– #main .data p { color:blue; }– .widget.data p { color:blue; }– #main .data > p { color:blue; }
CSS Pseudo-classes Selectors• Syntax:selector:pseudo-class { property:value; }• Anchor Pseudo-classes– a:link {color:#FF0000;} /* unvisited link */– a:visited {color:#00FF00;} /* visited link */– a:hover {color:#FF00FF;} /* mouse over link */– a:active {color:#0000FF;} /* selected link */• First-child Pseudo-class– ul.menu > li:first-child { margin-left:0; }
CSS Opacity / Transparency• Transparency– opacity:0.5;– filter:alpha(opacity=50); /* For old IEs */• Cross browser Transparency.transparent {/* IE 8 */-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";filter: alpha(opacity=50); /* IE 5-7 */-moz-opacity: 0.5; /* Netscape */-khtml-opacity: 0.5; /* Safari 1.x */opacity: 0.5; /* Good browsers */}
CSS Image Sprites• An image sprite is a collection of images putinto a single image.• Reduces load time and saves bandwidth.• img.home { width:46px; height:44px;background:url(img_navsprites.gif) 0 0; }• img.next { width:43px; height:44px;background:url(img_navsprites.gif) -91px 0; }
CSS Hacks - IE Detection andConditional CSS• http://www.sitepoint.com/microsoft-drop-ie10-conditional-comments/• http://msdn.microsoft.com/en-us/library/ms537512%28VS.85%29.aspx<!--[if IE]><p>You are using Internet Explorer >=5 and <= 9.</p><![endif]--><![if !IE]><p>You are using Internet Explorer >=10 or other browsers.</p><![endif]>• Using jQuery for jQuery < 1.9if (jQuery.browser.msie && jQuery.browser.version < 8) {// do something}
CSS Hacks• IE7 doesn’t understand ‘display: inline-block’1. display:block;float:left;2. display: inline-block;*display: inline;zoom: 1;
CSS – major IE6 Problem• IE6 doesn't support multiple class selectors.• So when we write,div.menu.horizontal.widget { color: blue; }in IE6, the above style is interpreted as:div.widget { color: blue; }• This style definition affects all div elementshaving widget style class.
Thank You!

Recommended

PPTX
Complete Lecture on Css presentation
PPT
Introduction to Cascading Style Sheets (CSS)
PPT
CSS Basics
PPTX
Css position
PPTX
HTML5 & CSS3
PDF
Intro to HTML and CSS basics
PPT
cascading style sheet ppt
PPTX
Media queries A to Z
PDF
CSS3 Media Queries
PPT
PPT
Css Ppt
PDF
Html frames
PPTX
Html5 and-css3-overview
PPTX
Introducción a HTML5 y CSS3
PPTX
HTML Semantic Tags
PPTX
Dynamic HTML (DHTML)
PDF
Intro to HTML & CSS
PPT
CSS for Beginners
PPT
Hyperlinks in HTML
PPT
Html & Css presentation
PPTX
Learn html Basics
PPTX
The Complete HTML
PPTX
Html and css presentation
PPTX
An Overview of HTML, CSS & Java Script
PPTX
HTML-(workshop)7557.pptx
PPTX
Css ppt
PDF
Basic html
PPTX
Bootstrap
PDF
Div tag presentation
PPT
Social networking

More Related Content

PPTX
Complete Lecture on Css presentation
PPT
Introduction to Cascading Style Sheets (CSS)
PPT
CSS Basics
PPTX
Css position
PPTX
HTML5 & CSS3
PDF
Intro to HTML and CSS basics
PPT
cascading style sheet ppt
PPTX
Media queries A to Z
Complete Lecture on Css presentation
Introduction to Cascading Style Sheets (CSS)
CSS Basics
Css position
HTML5 & CSS3
Intro to HTML and CSS basics
cascading style sheet ppt
Media queries A to Z

What's hot

PDF
CSS3 Media Queries
PPT
PPT
Css Ppt
PDF
Html frames
PPTX
Html5 and-css3-overview
PPTX
Introducción a HTML5 y CSS3
PPTX
HTML Semantic Tags
PPTX
Dynamic HTML (DHTML)
PDF
Intro to HTML & CSS
PPT
CSS for Beginners
PPT
Hyperlinks in HTML
PPT
Html & Css presentation
PPTX
Learn html Basics
PPTX
The Complete HTML
PPTX
Html and css presentation
PPTX
An Overview of HTML, CSS & Java Script
PPTX
HTML-(workshop)7557.pptx
PPTX
Css ppt
PDF
Basic html
PPTX
Bootstrap
CSS3 Media Queries
Css Ppt
Html frames
Html5 and-css3-overview
Introducción a HTML5 y CSS3
HTML Semantic Tags
Dynamic HTML (DHTML)
Intro to HTML & CSS
CSS for Beginners
Hyperlinks in HTML
Html & Css presentation
Learn html Basics
The Complete HTML
Html and css presentation
An Overview of HTML, CSS & Java Script
HTML-(workshop)7557.pptx
Css ppt
Basic html
Bootstrap

Viewers also liked

PDF
Div tag presentation
PPT
Social networking
PPTX
The history of social networks: how it all began
PPTX
10 things that make a good music video
PPT
Span and Div tags in HTML
PPTX
History of Social Media
PDF
A Brief History Of Social Media
PPTX
Css.html
PPT
Ip addressing
 
PPTX
Brief history of social media
PPT
Introduction to photoshop
PPT
Digital Storytelling
PPTX
Presentation on Adobe Photoshop
PDF
Fundamentals of Web Development For Non-Developers
PDF
Web fundamental 4 developers
PDF
Tessel: The End of Web Development (as we know it)
DOCX
SIWES I.T REPORT ON WEB DESIGN
PPT
Web Development Ppt
PDF
Nikos Markatos - NTUA
PPTX
Web development Training In Batra Computer Centre
Div tag presentation
Social networking
The history of social networks: how it all began
10 things that make a good music video
Span and Div tags in HTML
History of Social Media
A Brief History Of Social Media
Css.html
Ip addressing
 
Brief history of social media
Introduction to photoshop
Digital Storytelling
Presentation on Adobe Photoshop
Fundamentals of Web Development For Non-Developers
Web fundamental 4 developers
Tessel: The End of Web Development (as we know it)
SIWES I.T REPORT ON WEB DESIGN
Web Development Ppt
Nikos Markatos - NTUA
Web development Training In Batra Computer Centre

Similar to Introduction to HTML and CSS

PDF
Intro to html, css & sass
PPTX
css v1 guru
PDF
Introduction to HTML and CSS
PPT
Basic css
PPTX
Howcssworks 100207024009-phpapp01
PDF
HTML+CSS: how to get started
PDF
Pfnp slides
PPT
Chapter 6 - Web Design
PDF
Html5 deciphered - designing concepts part 1
PPTX
Introduction to Web Development.pptx
PPTX
Introduction to Web Development.pptx
PPTX
Introduction to Web Development.pptx
PDF
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
KEY
The web standards gentleman: a matter of (evolving) standards)
PPTX
Html,CSS & UI/UX design
PDF
Introduction to HTML-CSS-Javascript.pdf
PPTX
Css intro
PPTX
PPTX
Basics of Front End Web Dev PowerPoint
PDF
GDI Seattle Intro to HTML and CSS - Class 1
Intro to html, css & sass
css v1 guru
Introduction to HTML and CSS
Basic css
Howcssworks 100207024009-phpapp01
HTML+CSS: how to get started
Pfnp slides
Chapter 6 - Web Design
Html5 deciphered - designing concepts part 1
Introduction to Web Development.pptx
Introduction to Web Development.pptx
Introduction to Web Development.pptx
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
The web standards gentleman: a matter of (evolving) standards)
Html,CSS & UI/UX design
Introduction to HTML-CSS-Javascript.pdf
Css intro
Basics of Front End Web Dev PowerPoint
GDI Seattle Intro to HTML and CSS - Class 1

More from Ferdous Mahmud Shaon

PDF
Getting started with Test Driven Development
PDF
Tips to Kick-start your Software Engineering Career
PPTX
Business Communcation
PPT
Effective Java - Override clone() method judiciously
PPT
Effective Java - Always override toString() method
PPT
Composite Design Pattern
Getting started with Test Driven Development
Tips to Kick-start your Software Engineering Career
Business Communcation
Effective Java - Override clone() method judiciously
Effective Java - Always override toString() method
Composite Design Pattern

Recently uploaded

PDF
Influence Without Power - Why Empathy is Your Best Friend.pdf
PDF
IT Estate Modernization: Transform Your Infrastructure for the Future .pdf
PPTX
Struggling with Pentaho Limitations How Helical Insight Solves Them.pptx
PPTX
Application Security – Static Application Security Testing (SAST)
PDF
nsfconvertersoftwaretoconvertNSFtoPST.pdf
PPTX
NSF Converter Software to Convert NSF to PST, EML, MSG
PDF
What Is A Woman (WIAW) Token – Smart Contract Security Audit Report by EtherA...
PDF
Cloud-Based Underwriting Software for Insurance
PDF
KoderXpert – Odoo, Web & AI Solutions for Growing Businesses
PDF
Resource-Levelled Critical-Path Analysis Balancing Time, Cost and Constraints
PDF
Navigating SEC Regulations for Crypto Exchanges Preparing for a Compliant Fut...
PDF
Database Management Systems(DBMS):UNIT-II Relational Data Model BCA SEP SEM ...
PPTX
Modern Claims Automation Solutions for Operational Agility
PPTX
Why Your Business Needs Snowflake Consulting_ From Data Silos to AI-Ready Cloud
 
PDF
API_SECURITY CONSULTANCY SERVICES IN USA
PPT
This-Project-Demonstrates-How-to-Create.ppt
PDF
How Does AI Improve Location-Based Mobile App Development for Businesses.pdf
PPTX
Magnet-AXIOM_overview_tool_cyber_tool.pptx
PDF
INTRODUCTION TO DATABASES, MYSQL, MS ACCESS, PHARMACY DRUG DATABASE.pdf
PDF
Operating System (OS) :UNIT-I Introduction to Operating System BCA SEP SEM-II...
Influence Without Power - Why Empathy is Your Best Friend.pdf
IT Estate Modernization: Transform Your Infrastructure for the Future .pdf
Struggling with Pentaho Limitations How Helical Insight Solves Them.pptx
Application Security – Static Application Security Testing (SAST)
nsfconvertersoftwaretoconvertNSFtoPST.pdf
NSF Converter Software to Convert NSF to PST, EML, MSG
What Is A Woman (WIAW) Token – Smart Contract Security Audit Report by EtherA...
Cloud-Based Underwriting Software for Insurance
KoderXpert – Odoo, Web & AI Solutions for Growing Businesses
Resource-Levelled Critical-Path Analysis Balancing Time, Cost and Constraints
Navigating SEC Regulations for Crypto Exchanges Preparing for a Compliant Fut...
Database Management Systems(DBMS):UNIT-II Relational Data Model BCA SEP SEM ...
Modern Claims Automation Solutions for Operational Agility
Why Your Business Needs Snowflake Consulting_ From Data Silos to AI-Ready Cloud
 
API_SECURITY CONSULTANCY SERVICES IN USA
This-Project-Demonstrates-How-to-Create.ppt
How Does AI Improve Location-Based Mobile App Development for Businesses.pdf
Magnet-AXIOM_overview_tool_cyber_tool.pptx
INTRODUCTION TO DATABASES, MYSQL, MS ACCESS, PHARMACY DRUG DATABASE.pdf
Operating System (OS) :UNIT-I Introduction to Operating System BCA SEP SEM-II...

Introduction to HTML and CSS

  • 1.
    Knowledge Sharing SessiononHTML and CSSBasic HTML and CSSFerdous Mahmud ShaonFebruary 2014
  • 2.
  • 3.
    HTML Tags andNested Tags
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
    HTML frameset• Notrecommended tag• Not supported in HTML5
  • 14.
  • 15.
    HTML Block vsInline elements• Block Elements– Takes up the full width available, and has a linebreak before and after it.– <p>, <div>, <h1>…. <h6>, <ul>, <ol>, <li>, <table>• Inline Elements– Takes up only as much width as necessary, anddoes not force line breaks after it.– <a>, <span>, <img>
  • 16.
  • 17.
  • 18.
  • 19.
    HTML Table vsDIV• Most websites have put their content in multiple columns.• Multiple columns can be created by using <div> or <table>elements.• Even though it is possible to create nice layouts with HTMLtables, tables were designed for presenting tabular data -NOT as a layout tool!• The div element is used for grouping HTML elements andfor creating rows and columns with the help of CSS.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
    HTML <!DOCTYPE>• Mustbe the very first thing in HTML document,even before the <html> tag• Provides information to the web browser aboutwhat version of HTML the page is written in.• In HTML 4, the <!DOCTYPE> declaration refers to aDTD, but in HTML5, the <!DOCTYPE> declarationdoes NOT refer to any DTD.
  • 26.
  • 27.
  • 28.
    HTML vs XHTMLXHTML–eXtensible HyperText Markup Language– Stricter and cleaner version of HTML similar toXML– Better cross browser support
  • 29.
    HTML vs XHTMLXHTMLDOCTYPE– mandatoryXHTML elements– must be properly nested– must always be closed– must be in lowercase– must have one root elementXHTML attributes– names must be in lower case– values must be quoted– minimization is forbidden• <input type="checkbox" checked="checked" />• <input disabled="disabled" />
  • 30.
    SEO friendly HTML•Meaningful and relevant HTML <title> per page• Define <meta> description and keywords for each page.<meta name="description" content="Free Web tutorials on HTML and CSS"><meta name="keywords" content="HTML, CSS, XML, XHTML, JavaScript">• Use an <h1> tag for the main headline of the page. It shouldn’t bemore than one in a single page.• Relevant sub-headlines should use an <h2>…<h6> tags according totheir priority.• Avoid embedded JS and CSS whenever possible. Try to use externalCSS and JS and if possible minimize them.
  • 31.
    New HTML5 Tags•<canvas> defines graphic drawing usingJavaScript• <audio> defines sound or music content• <video> defines video or movie content• <header> defines a header for the documentor a section• <nav> defines navigation links in the document
  • 32.
    New HTML5 Tags•<section> defines a section in the document• <main> defines the main content of adocument• <article> defines an article in the document• <footer> defines a footer for the document ora section• <figure> defines self-contained content, likeillustrations, diagrams, photos etc.
  • 33.
    HTML Style Elements<font>,<strong>, <b>, <u>, <i>, <em>, <center>
  • 34.
    What is CSS?•Cascading Style Sheets• Defines how to display HTML elements• Added to HTML 4.0• Current version is CSS 2.• CSS 3 is also released and supported by mostof the browsers.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
    CSS class vsid selector
  • 44.
  • 45.
  • 46.
    CSS Box Model(block element)
  • 47.
    CSS Box Model(block element)
  • 48.
    CSS Box Model(block element)
  • 49.
    CSS Box Model– Margin Collapse
  • 50.
    CSS Box Model– Margin Collapse
  • 51.
    CSS Box Model– Margin Collapse
  • 52.
    CSS Box Model– Margin Collapse
  • 53.
    CSS Box Model– Margin Collapse
  • 54.
    CSS Box Model(inline element)
  • 55.
    CSS Box Model(inline element)
  • 56.
    CSS Box ModelShortcuts
  • 57.
    CSS Box ModelDimensions
  • 58.
    CSS Box Modeland Box Sizing• CSS3 Property– box-sizing: content-box; /* Default value */– box-sizing: border-box; /* Grid in Twitter Bootstrap */
  • 59.
    CSS Dimension• height–Sets the height of an element• max-height– Sets the maximum height of an element• min-height– Sets the minimum height of an element• width– Sets the width of an element• max-width– Sets the maximum width of an element• min-width– Sets the minimum width of an element
  • 60.
    Display and Visibility•Hiding an Element– display:none (doesn’t take space)– visibility:hidden (takes space)• Styling block / inline HTML Element– ul.menu li { display:inline; }– div.data span { display:block; }
  • 61.
  • 62.
  • 63.
    CSS ‘position’ Property•static– default value– not affected by top, right, bottom, left• relative– positioned relative to its normal position• absolute– positioned relative to the nearest relatively positioned ancestor– if no relatively positioned ancestors, then it uses the document body• fixed– positioned relative to the viewport– always stays in the same place even if the page is scrolled.
  • 64.
  • 65.
  • 66.
    CSS Relative andAbsolute Positioning
  • 67.
  • 68.
  • 69.
  • 70.
  • 71.
  • 72.
  • 73.
    Grouping and NestingSelectors• Grouping Selectors– div, p, span {font-family: "Helvetica Neue", Arial, Helvetica;}• Nesting Selectors– #main .data p { color:blue; }– .widget.data p { color:blue; }– #main .data > p { color:blue; }
  • 74.
    CSS Pseudo-classes Selectors•Syntax:selector:pseudo-class { property:value; }• Anchor Pseudo-classes– a:link {color:#FF0000;} /* unvisited link */– a:visited {color:#00FF00;} /* visited link */– a:hover {color:#FF00FF;} /* mouse over link */– a:active {color:#0000FF;} /* selected link */• First-child Pseudo-class– ul.menu > li:first-child { margin-left:0; }
  • 75.
    CSS Opacity /Transparency• Transparency– opacity:0.5;– filter:alpha(opacity=50); /* For old IEs */• Cross browser Transparency.transparent {/* IE 8 */-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";filter: alpha(opacity=50); /* IE 5-7 */-moz-opacity: 0.5; /* Netscape */-khtml-opacity: 0.5; /* Safari 1.x */opacity: 0.5; /* Good browsers */}
  • 76.
    CSS Image Sprites•An image sprite is a collection of images putinto a single image.• Reduces load time and saves bandwidth.• img.home { width:46px; height:44px;background:url(img_navsprites.gif) 0 0; }• img.next { width:43px; height:44px;background:url(img_navsprites.gif) -91px 0; }
  • 77.
    CSS Hacks -IE Detection andConditional CSS• http://www.sitepoint.com/microsoft-drop-ie10-conditional-comments/• http://msdn.microsoft.com/en-us/library/ms537512%28VS.85%29.aspx<!--[if IE]><p>You are using Internet Explorer >=5 and <= 9.</p><![endif]--><![if !IE]><p>You are using Internet Explorer >=10 or other browsers.</p><![endif]>• Using jQuery for jQuery < 1.9if (jQuery.browser.msie && jQuery.browser.version < 8) {// do something}
  • 78.
    CSS Hacks• IE7doesn’t understand ‘display: inline-block’1. display:block;float:left;2. display: inline-block;*display: inline;zoom: 1;
  • 79.
    CSS – majorIE6 Problem• IE6 doesn't support multiple class selectors.• So when we write,div.menu.horizontal.widget { color: blue; }in IE6, the above style is interpreted as:div.widget { color: blue; }• This style definition affects all div elementshaving widget style class.
  • 80.

[8]ページ先頭

©2009-2025 Movatter.jp