know yourselves. information, computer, 7 wonders, various.

Thursday, September 1, 2016

css_part8



Selector এর গ্রুপিং
আমরা জানি প্রতিটি সিলেক্টরে একটি Properly Value নির্ধারণ করে দিতে হয়। ইচ্ছা করলে সিলেক্টর গুলিকে গ্রুপ করে দেওয়া যায়। একটির পর একটি সিলেক্টর লিখে প্রতিটির মাঝে একটি কমা (,) দিয়ে পৃথক করে দিতে হবে এবং একটি কমন Properly Value দিতে হবে।

নিচের মত কোডিংসহ আরও একটি HTML ফাইল তৈরী করুন। 
<!DOCTYPE html>
<html>
<head>
<style type="text/css" >
body {
     background-color:PowderBlue;
     }
p    {
    color:green;
    font-size:20px;
     } 
h1,h2,h3,h4,h5,h6,b,hr  {
                        color:red;
                        font-family:arial
                        }
</style>
</head>
<body>
This is Normal body text.
<p> This is Paragraph</p>
<h1>Word Processor</h1>
<h2>Word Processor</h2>
<h3>Word Processor</h3>
<h4>Word Processor</h4>
<h5>Word Processor</h5>
<h6>Word Processor</h6>
<b> This is bold text</b>
<hr>
Look! Avove is ruler with color red
</body>
</html>
ব্রাউজার দিয়ে খুললে নিচের মত ফলাফল পাওয়া যাবে।



সুডো (Pseudo) ক্লাস এর ব্যবহার
আমরা ইতিমধ্যেই Class ID সম্বন্ধে জেনেছি। class ছাড়াও CSS pseudo Class এর ব্যবহার রয়েছে Class এর ক্ষেত্রে যেমন যেমন ডট (.) চিহ্ন ব্যবহার করা হয়। সুডো Class এর ক্ষেত্রে এখানে কোলন (:) চিহ্ন ব্যবহার করতে হয় ।
কোডিং হবে: Selector: pseudo class {properly: value;} যেমন  a:link (color: # FF0000;)
আবার CSS class গুলিকে  pseudo class এর সাথেও ব্যবহার করা যায়
কোডিং হবে: Selector. class : pseudo-class { properly : value;} 
যেমন red নামের একটি class জন্য কোডিং হচ্ছে : a. red: link {color : #FF0000;}
ডিফল্ড সুডো class হিসেবে link এর ক্ষেত্রে ৪টি সুডো class বহুল ভাবে ব্যবহৃত হয়। এগুলি হচ্ছে link, visited, hover active Link-এটির দ্বারা link এর কালার বোঝায়, visnted-ভিজিট করার পর পরিবর্তিত কালার,  hover-লিংক কার্সর নিলে পরিবর্তিত কালার এবং active–ক্লিক করে সিলেক্ট করলে পরিবর্তিত কালার। এজন্য মনে রাখতে হবে  a:hover কমান্ডটি  a:link a:visited এর পরে বসাতে হবে এবং a:active কমান্ডটি অবশ্যই  a:hover এর পরে দিতে হবে।   

নিচের মত কোডিংসহ একটি ফাইল তৈরী করে style017.css নাম দিয়ে সেভ করুন।
body {background-color:PowderBlue;}
p {color:green;font-size:20px;}
h1{color:red;text-align:left;font-size:16pt;}
.subtext{font-family:Arial; color:#0000ff;
font-size:14px;}
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 *

নিচের মত কোডিংসহ আরও একটি HTML ফাইল তৈরী করুন। 
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet"type="text/css"
 href="style017.css"> </head>
<body>
This is Normal body text.
<h1> Nova Computer </h1>
  <span class="subtext">Learn from Beginning.. Don't late.<br /></span></div>
<a href="program_css001.html" target="_blank">
This is a link</a></body></html>
ব্রাউজার দিয়ে খুললে নিচের মত ফলাফল পাওয়া যাবে।



Previous Post                                                                                           Next Post

  বিস্তারিত জানতে নিচের বইটি সংগরহ করে নিন।

Book Name: Mastering Microsoft  Word
Writer: Bappi Ashraf
Published By: Gyankosh Prokashani
Amount of Pages: 464
First Publish: October-2004
Last Edition: We've February-2015 edition. Future edition may be existed!
Book Price: BDT 350 (30% Discount)
 The writer of this book has told that he has written this book with the concept of "teach yourself". On the other hand, Web Design is a thing which is interesting to learn. He has also told that the book is full of fan and enjoyment so that a person can learn Web Design by himself by playing with the example projects of this book.  Book's CD Link below... 

 cd

RELATED POST LINKS BELOW ********************************************
Next_


Part- 02:  Inline Style




css_part7



ID সিলেক্টর
Class সিলেক্টরের মত IDও  একই নিয়মে করতে হবে। শুধুমাত্র ডট চিহ্নের (.) বদলে হ্যাস চিহ্ন (#) ব্যবহার করতে হবে। তবে এটি Unique, যেখানে সেখানে ব্যবহার না করে একটি সিলেক্টটরে একবারই ব্যবহার করা যাবে।  একই সিলেক্টটরে মধ্যে বার বার ব্যবহার করতে হবে না এরুপ ক্ষেত্রে এটি ব্যবহৃত হয়। বাকী নিয়ম Class সিলেক্টরের মত একই এটিও Internal External CSS ফাইলে ব্যবহৃত হয়।

Internal ID তৈরী করা (Open ID)
কোন সিলেক্টরের সাথে ব্যবহার না করে আমরা Open ID দিয়ে কিছু উদাহরণ দেখাবো।


নিচের মত কোডিংসহ আরও একটি HTML ফাইল তৈরী করুন। 
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body {background-color:PowderBlue;}
#red  {color:red;font-size:20px;}
#green {color:green;font-size:25px;}
#blue {color:blue;text-align:center;}
#magenta {color:magenta;text-align:center;}
</style>
</head>

<body>
This is Normal body text.

<p id="red"> This is First para</p>
<h1 id="blue">Word Processor</h1>
Microsoft Word is a word processing program.
It is use to Write application, News Letter,
Writting Pad, etc.

<p id="green"> This is Second para</p>
<h1 id="magenta">Spread Sheet</h1>
Microsoft Excel is a Spread Sheet program.
Its devided by Row and Column. You can make
chart using Excel.



<p> This is Third para</p>
<h1> Database</h1>
Microsoft Access is a Spread Database
Managementprogram. It is use to create and analise table and database.
</body>
</html>
ব্রাউজার দিয়ে খুললে নিচের মত ফলাফল পাওয়া যাবে।




External CSS ID তৈরী
অনা্যন্য External CSS ফাইল তৈরীর মত একই নিয়মে এটি তৈরী করতে হয়। Style অংশের কোডগুলি আলাদা ফাইলে লিখে একটি নাম দিয়ে .CSS সহ সেভ করতে হবে। HTML ফাইলের Head সেকশনে Link ফাইলটি Call করতে হবে এবং HTML ফাইলের বাকী কোডিং শেষ করতে হবে।

নিচের মত কোডিংসহ একটি ফাইল তৈরী করে style013.css নাম দিয়ে সেভ করুন।
body {background-color:PowderBlue;}
#red  {color:red;font-size:20px;}
#green {color:green;font-size:25px;}
#blue {color:blue;text-align:center;}
#magenta {color:magenta;text-align:center;}

নিচের মত কোডিংসহ আরও একটি HTML ফাইল তৈরী করুন। 
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css"
href="style013.css">
</head>
<body>
This is Normal body text.
<p id="blue"> This is First para</p>
<h1 id="red">Word Processor</h1>
Microsoft Word is a word processing program.
It is use to Write application, News Letter,
Writting Pad, etc.

<p id="green"> This is Second para</p>
<h1 id="green">Spread Sheet</h1>
Microsoft Excel is a Spread Sheet program.
Its devided by Row and Column. You can make
chart using Excel.

<p id="magenta"> This is Third para</p>
<h1 id="blue"> Database</h1>
Microsoft Access is a Spread Database
Managementprogram. It is use to create and analise table and database.
</body>
</html>
ব্রাউজার দিয়ে খুললে নিচের মত ফলাফল পাওয়া যাবে।

Previous Post                                                                                           Next Post

  বিস্তারিত জানতে নিচের বইটি সংগরহ করে নিন।

Book Name: Mastering Microsoft  Word
Writer: Bappi Ashraf
Published By: Gyankosh Prokashani
Amount of Pages: 464
First Publish: October-2004
Last Edition: We've February-2015 edition. Future edition may be existed!
Book Price: BDT 350 (30% Discount)
 The writer of this book has told that he has written this book with the concept of "teach yourself". On the other hand, Web Design is a thing which is interesting to learn. He has also told that the book is full of fan and enjoyment so that a person can learn Web Design by himself by playing with the example projects of this book.  Book's CD Link below... 

 cd

RELATED POST LINKS BELOW ********************************************
Next_


Part- 02:  Inline Style