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

Showing posts with label CSS. Show all posts
Showing posts with label CSS. Show all posts

Saturday, March 14, 2020

css_part35





 
হরেক রকম কার্সর
কার্সরকে আমরা ইচ্ছামত পরিবর্তন করতে পারি এজন্য নির্ধারিত Value সিলেক্ট করে দিতে হয়। এছাড়া নিজস্ব কোন ইমেজ দিয়ে কার্সর তৈরী করতে চাইলে Value হিসাবে Cursor প্রোপার্টির সাথে ইমেজের URL দিতে হবে যেমন cursor:url (image.jpg), auto; নিচের মত প্রোগ্রাম লক্ষ্য করুন।

নিচের মত কোডিংসহ আরও একটি HTML ফাইল তৈরী করুন। 
<!DOCTYPE html>

<html>
<head><title> CSS Position properties </title>
<html>
<body>
<h1>Look! various cursor.</h1>
<span style="cursor:auto">I am cursor style auto. Mouse Over Me.  </span><br>
<span style="cursor:crosshair">I am cursor style crosshair.Mouse Over Me.</span><br>
<span style="cursor:default">I am cursor style default. Mouse Over Me.</span><br>
<span style="cursor:e-resize">I am cursor style e-resize. Mouse Over Me.</span><br>
<span style="cursor:help">I am cursor style help. Mouse Over Me.</span><br>
<span style="cursor:move">I am cursor style move. Mouse Over Me.move</span><br>
<span style="cursor:n-resize">I am cursor style n-resize. Mouse Over Me.n-resize</span><br>
<span style="cursor:ne-resize">I am cursor style ne-resize. Mouse Over Me.</span><br>
<span style="cursor:nw-resize">I am cursor style nw-resize. Mouse Over Me.</span><br>
<span style="cursor:pointer">I am cursor style pointer. Mouse Over Me.pointer</span><br>
<span style="cursor:progress">I am cursor style progress. Mouse Over Me.progress</span><br>
<span style="cursor:s-resize">I am cursor style s-resize. Mouse Over Me.s-resize</span><br>
<span style="cursor:se-resize">I am cursor style se-resize. Mouse Over Me.</span><br>
<span style="cursor:sw-resize">I am cursor style sw-resize Mouse Over Me.</span><br>
<span style="cursor:text">I am cursor style text. Mouse Over Me.</span><br>
<span style="cursor:w-resize">I am cursor style w-resize. Mouse Over Me.</span><br>
<span style="cursor:wait">I am cursor style wait. Mouse Over Me.</span><br>
<span style="cursor:url(ball.png, url(myBall.cur), auto;"> I am cursor style image. Mouse Over Me.</span><br>
</body>
</html>

ব্রাউজার দিয়ে খুললে নিচের মত ফলাফল পাওয়া যাবে।

Paragraph এর প্রথম letter কে Float করা
আমরা জানি Word Processingএ বামে একটি অক্ষর বড় করে Drop Cap ব্যবহার করা হয়। ওয়েব পেজে প্যারাগ্রাফের প্রথম অক্ষর কে বাম দিকে Floating করে এবং অক্ষরের সাইজ বড় করে Drop Cap তৈরী করা যাবে। নিচের  প্রোগ্রাম লক্ষ্য করুন।

নিচের মত কোডিংসহ আরও একটি HTML ফাইল তৈরী করুন। 
<!DOCTYPE html>
<html>
<head>
<title> Float first letter</title>
<style>
span { float:left; width:1em; font-size:400%;
font-family:arial,courier; line-height:80%; }
</style>
</head>

<body>
<p>
<span>T</span>his is a sample paragrapg. This is a sample paragrapg. This is a sample paragrapg. This is a sample paragrapg.This is a sample paragrapg. This is a sample paragrapg. This is a sample paragrapg. This is a sample paragrapg. This is a sample paragrapg.This is a sample paragrapg. This is a sample paragrapg. This is a sample paragrapg. This is a sample paragrapg. This is a sample paragrapg.
</p>
</body>
</html>
ব্রাউজার দিয়ে খুললে নিচের মত ফলাফল পাওয়া যাবে।


CSS - এ এলিমেন্টকে Hide করা
মনে করুন ইমেজ গ্যালারী থেকে একটি ইমেজের বাটনের উপর ক্লিক করলেন এবং ইমেজটি মুছে গেল এই ধরণের কাজের জন্য এলিমেন্টকে Hide করার দরকার হতে পারে। ২ধরণের প্রোপার্টি ব্যবহার করে এলিমেন্টকে লুকানো যায়।  Display প্রোপার্টির Value কে None অথবা  Visibility প্রোপার্টির Value কে hidden সিলেক্ট করে কাজটি করা যাবে। 
Display : None এর ব্যবহার
display প্রোপার্টিকে None করে এলিমেন্টকে লুকানো যাবে এক্ষেত্রে এলিমেন্ট লুকানো থাকলেও সেই স্থানটি  ফাঁকা থাকবে অর্থ্যাৎ এলিমেন্টটি জায়গা দখল করে রাখবে। নিচের প্রোগ্রাম লক্ষ্য করুন।

নিচের মত কোডিংসহ আরও একটি HTML ফাইল তৈরী করুন। 
<!DOCTYPE html>
<html>
<head><title> CSS visibility properties </title>
<style>
h1.hidden {visibility:hidden;}
</style>
</head>
<body>
<h1>Look! I am visible </h1>
<h1 class="hidden"><img src="logo.jpg" width="100" height="140";>hidden Image</h1>
<p>Look above the element is hidden but it's taking the space.</p>
</body>
</html></html>
ব্রাউজার দিয়ে খুললে নিচের মত ফলাফল পাওয়া যাবে।


Visibility: hidden এর ব্যবহার
এটি display: none এর মত একই কাজ করে কিন্তু  hidden এলিমেন্টের স্থানে কোন জায়গা দখল করে না নিচের প্রোগ্রাম লক্ষ্য করুন।

নিচের মত কোডিংসহ আরও একটি HTML ফাইল তৈরী করুন। 
<!DOCTYPE html>
<html>
<head>
<title> CSS Position properties </title>
<style> h1.hidden {display:none;}</style>
</head>
<body>
<h1>Look! I am visible </h1>
<h1 class="hidden"><img src="logo.jpg" width="100" height="140";>hidden Image</h1>
<p>Look above the element is hidden but it's not taking the space.</p>
</body> </html>
ব্রাউজার দিয়ে খুললে নিচের মত ফলাফল পাওয়া যাবে।


part014                       Part1                   part002

******************************************************************************


বিস্তারিত জানতে নিচের বইটি সংগরহ করে নিন।
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)
What Will You Get Basically
The writer of this book has told that he has written this book with the concept of "teach yourself". On the other hand, Word 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 word by himself by playing with the example projects of this book. 

পরিবেশক/প্রাপ্তিস্থান
ঢাকা - বাংলাবাজার       - * সিসটেক পাবলিকেশনস্, * আজিজিয়া লাইব্রেরী, * সাহিত্য কোষ, *কাজী ট্রেডার্স                           
ঢাকা - নিউমার্কেট - * বুক ভিউ, * ঢাকা বুক কর্পোরেশন, *বাংলাদেশ লাইব্রেরী
ঢাকা -  ষ্টেডিয়াম মার্কেট - * অনুপম জ্ঞানভান্ডার,
ঢাকা - নীলক্ষেতঃ * ডলফিন* ফরিদা কর্পোরেশন,* রানা বুক সেন্টার, * সাকিব বুক সেন্টার,* মডার্ন বুক সেন্টার, *ফাহাদ বুকস্, *মুক্তা এন্টারপ্রাইজ, *ফারহান বুকস্, *হক লাইব্রেরী, পপুলার বুকস্,
ঢাকাঃ ফার্মগেট, * তোফাজ্জল বুক হাউস, * ছাওয়াল বুকস্, * সেলিম বুকস্,  * এম, জামান এন্টারপ্রাইজ, * আদর্শ কলেজ লাইব্রেরী, * বুক ম্যান, * ষ্টুডেন্ট লাইব্রেরী, * খান বুক সেন্টার   
খুলনাঃ * সোহাগ বুক সেন্টার, * নূর লাইব্রেরী, * সালেহিয়া লাইব্রেরী * আজিজিয়া লাইব্রেরী
রাজশাহীঃ  * বুক ওয়ার্ল্ড, * বুক মার্ট * আলীগড় লাইব্রেরী * সংলাপ, * রহমান বুক, * সূচীপত্র, * আব্দুলস্নাহ্ এন্ড ব্রাদার্স
চট্টগ্রামঃ * বুক ম্যান, নিউমার্কেট, * বুক এম্পোরিয়াম, আগ্রাবাদ, , * বুক লাইব্রেরী, আন্দরকিলা, * সিদ্দিকিয়া লাইব্রেরী, আন্দরকিলা,* বুক সেন্টার, আন্দরকিলা, * ন্যাশনাল বুক, আন্দরকিলা,* প্রাইম  বুক, আন্দরকিলা, *ফ্রেন্ডস  বুক, আন্দরকিলা, * প্রতিভা লাইব্রেরী, আন্দরকিলা, *আর আলম বুকস, আন্দরকিলা,*গুলিস্থান লাইবেরী, বিপনী বিতান নিউমার্কেট, *অমর বই ঘর, নূপুর মার্কেট, ষ্টেশন রোড, *নিউ বুক ল্যান্ড, চকবাজার *কারেন্ট বুক স্টোর, জলসা মার্কেট
কুষ্টিয়াঃ * বইমেলা, এন, এস, রোড
চুয়াডাঙ্গাঃ * পুথিঘর লাইব্রেরী, বড় বাজার
যশোরঃ * জনতা লাইব্রেরী, দড়াটানা
কুমিল্লাঃ * শাহীন লাইব্রেরী  
বরিশাল* বুকভিলা           
সিলেটঃ * বন্ধু লাইব্রেরী, * নিউ নেশন লাইব্রেরী, * অক্সফোর্ড লাইব্রেরী, * পপি লাইব্রেরী             
বগুড়াঃ * কোরান হাদীস মঞ্জিল (উত্তর বঙ্গের একমাত্র পরিবেশক)                                                                              
রংপুরঃ * বিপণী বিচিত্রা, * সাহিত্য ভান্ডার, * টাউন ষ্টোর লাইব্রেরী
জ্ঞানকোষ প্রকাশনী
৩৮/২-ক, বাংলাবাজার (২য় তলা), ঢাকা।
       ফোনঃ ৭১১৮৪৪৩, ৮১১২৪৪১, ৮৬২৩২৫১.         
                                                     
কলকাতায় পরিবেশক/প্রাপ্তিস্থান
রিতা ইন্টারন্যাশনাল
৩৬, পি.এন. ব্যানার্জি রোড, কলকাতা
ফোনঃ ২৫১৩৮৩৫৯, ৯৮৩০৪৩৯৬৭৯, +৯১৯৮৩০৪৩৯৬৭৯

Online : www.rokomari.com


Next_


Part- 02:  Inline Style




Friday, March 13, 2020

css_part29



CSS Box ব্যবহার
আসলে সকল HTML ই হচ্ছে Box এলিমেন্ট। ওয়েব পেজ যখন Design layout করা হয় তখন এটির দ্বারাই ডিজাইন করা হয়। এটিতে যে সমস্ত বিষয় বিচার করা হয় সেগুলি হচ্ছে margin, border, padding main content । এছাড়া Outline থাকতে পারে। এখানে width height গননার ক্ষেত্রে বিবেচ্য নহে। এখন আসুন সমস্ত web page এর বা box এর width যদি 300px হয়, তবে মনেকরি margin=10px নিলে ডানে ও বামে মোট 20px ফাঁকা থাকবে। border যদি 5px হয় তবে ডানে বামে 10px বাদ থাকবে এবং padding যদি 10px হয় তবে ডানে  বামে মোট 20px বাদ থাকবে সুতরাং margin 20px + border 10px + padding 20px মোট 50px বাদ থাকবে সুতরাং main content হবে 300px-500px =250px. এখানে মনে রাখবেন  height থাকবে auto অর্থ্যাৎ content এর উপর নির্ভর করবে। এখন চলুন নিচের মত একটি প্রোগ্রাম তৈরী করি।
Program_CSS084
নিচের মত কোডিংসহ আরও একটি HTML ফাইল তৈরী করুন। 
<!DOCTYPE html>
<html>
<head><title> CSS Box Concept</title>
<style>
div {width:250px;padding:10px;border:5px solid gray;
margin:10px;}
</style>
</head>
<body>
<hr style="width:300px; height:10px; text-align:left; margin-left:0">
<div> Look! This ia a main content area with left margin = 10px and right margin = 10px. </div>
</body>
</html>
ব্রাউজার দিয়ে খুললে নিচের মত ফলাফল পাওয়া যাবে।


Border Radius, Image Shadow
বর্ডারকে আরও আকর্ষনীয় করার জন্য এই প্রোপার্টিজগুলি ব্যবহার করা হয়। তবে এগুলি আধুনিক ব্রাউজার (IE 9+, firefox4+,chrome, safari 5+ এবং opera) সাপোর্ট করে।
Border Radius এর ব্যবহার
border প্রোপার্টিজর এর সাথে border–radius প্রোপার্টি ব্যবহার করা হয় এবং valueকে length বা percent দিয়ে প্রকাশ করা হয়। বিভিন্ন ব্রাউজারের কথা মাথায় রেখে অতিরিক্ত লাইন কোডিং যোগ করে দেওয়া হয়। যেমন
-moz–border–radius: 25 px – পুরাতন firefox এর জন্য
-welkit–border: 25 px – safari chrome এর জন্য
 –o–border–radius: 25 px – opera এর জন্য
এছাড়া ৪ দিকে আলাদা আলাদা value দেবার জন্য
                        border-top–left – radius : value
                        border-top–right – radius : value
                        border–bottom – left – radius :value
                        border–bottom–right – radius : value ব্যবহার করা হয়। Image  Shadow এর ক্ষেত্রেও একই নিয়ম পালন করা হয়।
তো চলুন border – radius দিয়ে একটি প্রোগ্রাম তৈরী করা যাক।

Program_CSS085
নিচের মত কোডিংসহ আরও একটি HTML ফাইল তৈরী করুন। 
<!DOCTYPE html>
<html>
<head><title> CSS Boder extra element.</title>
<style>
div {border:2px solid red;padding:10px 40px;
background:yellow;width:300px;border-radius:25px;
-moz-border-radius:25px; /* Old Firefox */}
</style>
</head>

<body>
<div>Look! This is  box with border-radius property.Look! This is  box with border-radius property.Look! This is  box with border-radius property.Look! This is  box with border-radius property.</div>
</body>
</html>


ব্রাউজার দিয়ে খুললে নিচের মত ফলাফল পাওয়া যাবে।


Border Shadow এর ব্যবহার
Shadow এর জন্য border–shadow প্রোপ্রার্টি ব্যবহৃত হয়। value তে প্রথম ২ টি মান Horizontal vertical shadow দূরত্ব নির্ধারন করে। পরের ২টি value তে Blur এর পরিমান নির্ধারন করে। শেষে color value দিলে সেই রঙের কালার দেখায়।
Program_CSS086
নিচের মত কোডিংসহ আরও একটি HTML ফাইল তৈরী করুন। 
<!DOCTYPE html>
<html>
<head>
<title> CSS Boder extra element.</title>
<style>
div {border:2px solid red;padding:10px 40px;
width:300px;height:100px;border-radius:25px;
-moz-border-radius:25px; /* Old Firefox */
background-color:yellow;
box-shadow: 10px 10px 5px 5px #888888;
-moz-box-shadow: 10px 10px 5px #888888;/*Old Firefox*/ }
</style>
</head>
<body>
<div>Look! This is  box with border-shadow property. Look! This is  box with border-shadow property. Look! This is  box with border-shadow property. Look! This is  box with border-shadow property.</div>
</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