SlideShare a Scribd company logo
1 of 5
Download to read offline
සිංහලෙන්




ucscweb.blogspot.com | CSS -01
CSS කියන්නන් Cascading Style Sheets කියන එකයි. HTML elements
displayකරන්නන් නකොන ොමද කිය඼ා නේනකදි කතා කරනලා. නමමගින් එක css
file එකක් නලනස් කිරීනමන් ඕනෑම නලබ් පිටුල඼ නඳනුනේ නලනස් කේ ඇති ක඼
  ැක. එය ඉතාම ලාසිදායකනේ. ඳ ත දැක්නලන්නන් css rule එකකි.




                               1. ර෕ඳය




css rule ල඼ ප්රීධාන නකොසස් 2ක් තිනබ්.ඒලා selector ා declaration නේ.
selector කියන්නන් ඔබස අල඾ා HTML element(body,h1,p,font)එකයි.
Declaration සෑම එකකම property එකක් ා value එකක් ඇත.



Property යනු ඔබස නලනස් කිරීමස අල඾ා style attribute (ලර්ණය,අකුරු ල඼
ප්රීමාණය යන දී )එකයි. සෑම property එකකසම අගයක්(value) ඇත.



සෑමවිසම declaration අලසන් විය යුත්නත් semicolon ( ; )එකකිනි.
Declaration group එකක් සාග඼ ලර න් ල඼ අන්තර්ගත විය යුතුය.




p {color:red;text-align:center;}
ඉ ත code එක කියවීමස තරමක් අඳ සු නිසා ඳ ත ඳරිදි ලිවිම සිදු කරයි.

 p
 {
 color:red;
 text-align:center;
 }




 Css file එකක් save කිරීම:




                                  2.ර෕ඳය
 CSS Comments

  css comment කරන අයුරු ඳ ත දැක්නේ.

  p
  {
  text-align:center;
  /*This is a comment*/
  color:black;
  font-family:arial;
  }




 Id Selector
  Id එකක් මගින් යේ element එකක් සද ාම style එකක් අර්ථ දක්ලයි. නමය අර්ථ
  දැක්වීමස # ඼කුණ නයොදා ගැනන්. ඳ ත උදා රණනේ id එක “para1” නේ.
  Id එක ස඲ ා නම ඉ඼ක්කමකින් දරේභ නනොකරන්න.මන්ද එය firefox browser
  එක ර ා ක්රිමයාත්මක නනොලන බැවිනි.


  #para1
  {
  text-align:center;
  color:red;
  }




 class Selector
  elements කීඳයකස (element group එකකස) style එකක් අන්තර්ගත කිරීමස
  නයොදා ගනී. නමය අර්ථ දැක්වීමස “ . ” ඼කුණ නයොදා ගැනන්. ඳ ත උදා රණනේ
  class එක “ center ” නේ.
  .center {text-align:center;}
  එන඼සම එක එකක් නලනුනලන්ම නමය නයොදා ගත ැකි අයුරු ඳ ත දැක්නේ.
  p.center {text-align:center;}
ඉ ත උදා රණයස අනුල සියලු p elements මැදස කර නලබ් පිටුල සැනදයි. Class
     එක ස඲ ා නම ඉ඼ක්කමකින් දරේභ නනොකරන්න..මන්ද එය Internet Explorer
     එක ර ා ඳමණක් ක්රිමයාත්මක ලන බැවිනි.


     ඉතිරිය : www.ucscweb.blogspot.com




CSS ඳමණක් නනොල HTML,C++, C ,Joomla, ා PHP ලැනි සිිං න඼න් ඳාඩේ ඉනගන
ගැනීමස දැන්ම www.ucscweb.blogspot.com(www.ucscweb.tk)බ්න඼ොග් අඩවියස
පිවිනසන්න.

More Related Content

What's hot

What's hot (20)

Control Structures In Php 2
Control Structures In Php 2Control Structures In Php 2
Control Structures In Php 2
 
Cascading style sheet
Cascading style sheetCascading style sheet
Cascading style sheet
 
HTML Tags
HTML TagsHTML Tags
HTML Tags
 
AL ICT -Part 1
AL ICT -Part 1AL ICT -Part 1
AL ICT -Part 1
 
G.C.E.A/L Operating Systems
G.C.E.A/L Operating Systems G.C.E.A/L Operating Systems
G.C.E.A/L Operating Systems
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
 
G.C.E O/L ICT Short Notes Grade-11
G.C.E O/L ICT Short Notes Grade-11G.C.E O/L ICT Short Notes Grade-11
G.C.E O/L ICT Short Notes Grade-11
 
PHP
PHPPHP
PHP
 
Operating Systems::: G.C.E O/L
Operating Systems::: G.C.E O/LOperating Systems::: G.C.E O/L
Operating Systems::: G.C.E O/L
 
Cascading Style Sheet
Cascading Style SheetCascading Style Sheet
Cascading Style Sheet
 
ඇල්ගොරිතම 11 ශ්‍රේණිය ICT
ඇල්ගොරිතම 11 ශ්‍රේණිය ICTඇල්ගොරිතම 11 ශ්‍රේණිය ICT
ඇල්ගොරිතම 11 ශ්‍රේණිය ICT
 
Css animation
Css animationCss animation
Css animation
 
HTML Marquee
HTML MarqueeHTML Marquee
HTML Marquee
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Model
 
Html ppt
Html pptHtml ppt
Html ppt
 
Css
CssCss
Css
 
Cascading style sheets (CSS)
Cascading style sheets (CSS)Cascading style sheets (CSS)
Cascading style sheets (CSS)
 
HTML/Web Development (Grade 11-ICT)
HTML/Web Development (Grade 11-ICT)HTML/Web Development (Grade 11-ICT)
HTML/Web Development (Grade 11-ICT)
 
CSS ppt
CSS pptCSS ppt
CSS ppt
 
G.C.E. O/L ICT(Lesson 1)
G.C.E. O/L ICT(Lesson 1)G.C.E. O/L ICT(Lesson 1)
G.C.E. O/L ICT(Lesson 1)
 

Viewers also liked

Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
vikasgaur31
 

Viewers also liked (20)

HTML Web design english & sinhala mix note
HTML Web design english & sinhala mix noteHTML Web design english & sinhala mix note
HTML Web design english & sinhala mix note
 
CSS: a rapidly changing world
CSS: a rapidly changing worldCSS: a rapidly changing world
CSS: a rapidly changing world
 
Html sinhala(By Prasanga Amila-UCSC)
Html sinhala(By Prasanga Amila-UCSC)Html sinhala(By Prasanga Amila-UCSC)
Html sinhala(By Prasanga Amila-UCSC)
 
Origins and evolution of HTML and XHTML
Origins and evolution of HTML and XHTMLOrigins and evolution of HTML and XHTML
Origins and evolution of HTML and XHTML
 
G.C.E. O/L ICT Lessons Database sinhala
 G.C.E. O/L ICT Lessons Database sinhala G.C.E. O/L ICT Lessons Database sinhala
G.C.E. O/L ICT Lessons Database sinhala
 
Grade 10 ICT Short Notes in Sinhala(2015)
Grade 10 ICT Short Notes in Sinhala(2015)Grade 10 ICT Short Notes in Sinhala(2015)
Grade 10 ICT Short Notes in Sinhala(2015)
 
100 mcqs from al qur an
100 mcqs from al qur an100 mcqs from al qur an
100 mcqs from al qur an
 
XHTML
XHTMLXHTML
XHTML
 
Intr To Html & Xhtml
Intr To Html & XhtmlIntr To Html & Xhtml
Intr To Html & Xhtml
 
Xhtml
XhtmlXhtml
Xhtml
 
C++ in sinhala
C++ in sinhalaC++ in sinhala
C++ in sinhala
 
Introduction to XHTML
Introduction to XHTMLIntroduction to XHTML
Introduction to XHTML
 
ICT G.C.E O/L 2016 Model Paper
ICT G.C.E O/L 2016 Model PaperICT G.C.E O/L 2016 Model Paper
ICT G.C.E O/L 2016 Model Paper
 
Xhtml
XhtmlXhtml
Xhtml
 
Introduction to Html5
Introduction to Html5Introduction to Html5
Introduction to Html5
 
HTML presentation for beginners
HTML presentation for beginnersHTML presentation for beginners
HTML presentation for beginners
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
html5.ppt
html5.ppthtml5.ppt
html5.ppt
 
Html Ppt
Html PptHtml Ppt
Html Ppt
 
Computer for kids
Computer for kidsComputer for kids
Computer for kids
 

Css sinhala(By Prasanga Amila-UCSC)

  • 2. CSS කියන්නන් Cascading Style Sheets කියන එකයි. HTML elements displayකරන්නන් නකොන ොමද කිය඼ා නේනකදි කතා කරනලා. නමමගින් එක css file එකක් නලනස් කිරීනමන් ඕනෑම නලබ් පිටුල඼ නඳනුනේ නලනස් කේ ඇති ක඼ ැක. එය ඉතාම ලාසිදායකනේ. ඳ ත දැක්නලන්නන් css rule එකකි. 1. ර෕ඳය css rule ල඼ ප්රීධාන නකොසස් 2ක් තිනබ්.ඒලා selector ා declaration නේ. selector කියන්නන් ඔබස අල඾ා HTML element(body,h1,p,font)එකයි. Declaration සෑම එකකම property එකක් ා value එකක් ඇත. Property යනු ඔබස නලනස් කිරීමස අල඾ා style attribute (ලර්ණය,අකුරු ල඼ ප්රීමාණය යන දී )එකයි. සෑම property එකකසම අගයක්(value) ඇත. සෑමවිසම declaration අලසන් විය යුත්නත් semicolon ( ; )එකකිනි. Declaration group එකක් සාග඼ ලර න් ල඼ අන්තර්ගත විය යුතුය. p {color:red;text-align:center;}
  • 3. ඉ ත code එක කියවීමස තරමක් අඳ සු නිසා ඳ ත ඳරිදි ලිවිම සිදු කරයි. p { color:red; text-align:center; }  Css file එකක් save කිරීම: 2.ර෕ඳය
  • 4.  CSS Comments css comment කරන අයුරු ඳ ත දැක්නේ. p { text-align:center; /*This is a comment*/ color:black; font-family:arial; }  Id Selector Id එකක් මගින් යේ element එකක් සද ාම style එකක් අර්ථ දක්ලයි. නමය අර්ථ දැක්වීමස # ඼කුණ නයොදා ගැනන්. ඳ ත උදා රණනේ id එක “para1” නේ. Id එක ස඲ ා නම ඉ඼ක්කමකින් දරේභ නනොකරන්න.මන්ද එය firefox browser එක ර ා ක්රිමයාත්මක නනොලන බැවිනි. #para1 { text-align:center; color:red; }  class Selector elements කීඳයකස (element group එකකස) style එකක් අන්තර්ගත කිරීමස නයොදා ගනී. නමය අර්ථ දැක්වීමස “ . ” ඼කුණ නයොදා ගැනන්. ඳ ත උදා රණනේ class එක “ center ” නේ. .center {text-align:center;} එන඼සම එක එකක් නලනුනලන්ම නමය නයොදා ගත ැකි අයුරු ඳ ත දැක්නේ. p.center {text-align:center;}
  • 5. ඉ ත උදා රණයස අනුල සියලු p elements මැදස කර නලබ් පිටුල සැනදයි. Class එක ස඲ ා නම ඉ඼ක්කමකින් දරේභ නනොකරන්න..මන්ද එය Internet Explorer එක ර ා ඳමණක් ක්රිමයාත්මක ලන බැවිනි. ඉතිරිය : www.ucscweb.blogspot.com CSS ඳමණක් නනොල HTML,C++, C ,Joomla, ා PHP ලැනි සිිං න඼න් ඳාඩේ ඉනගන ගැනීමස දැන්ම www.ucscweb.blogspot.com(www.ucscweb.tk)බ්න඼ොග් අඩවියස පිවිනසන්න.