ব্লগার থিমে CSS Variable যুক্ত করা - Blogger theme development - WikiJana.Com™

ব্লগার থিমে CSS Variable যুক্ত করা - Blogger theme development

ব্লগার থিমে যেভাবেCSS Variable যুক্ত করবো।
Please wait 0 seconds...
Scroll Down and click on Go to Link for destination
Congrats! Link is Generated
ব্লগার থিমে CSS Variable যুক্ত করা - Blogger theme development

ব্লগার থিমে যদি ডায়ানামিক সিএসএস ব্যবহার করতে চায়। ওয়েবসাইটের ইউজার খুব সহজে যেকোনো কালার বা ভেলু চেন্জ করতে চায় তার জন্য আমরা CSS এর ভিতর Variable যুক্ত করি।

আস্‌সালামু আলাইকুম! আশা করি আল্লাহর রহমতে আপনি ভালো আছেন। 🥰 আলহামদুলিল্লাহ আমিও ভালো আছি। আজকের Topic এ আপনাকে স্বাগত! উইকিজানা ব্লগে প্রযুক্তিগত আপডেট থাকতে গুগল নিউজে ★ Followকরুন।

ব্লগার থিমে CSS Variable যুক্ত করার নিয়ম

ব্লগার থিমে CSS ভেরিয়েবল যুক্ত করার জন্য b:skin ট্যাগ এর মধ্যে নিচের মতো গ্রুপ ট্যাগের মধ্যে Description ও Selector লিখুন Selector এ আপনার সিএসএস এর ক্লাস এ নাম লিখতে হবে।

Variable ট্যাগ এর মধ্যে name, description, type, default, value এট্রিবিউট নিন। Name এট্রিবিউট এর নাম আর আমরাদের CSS ভেলু মিল রাখবো। Default এ যে কালার প্রথমেই রাখতে চান সেই কালার দিবেন আর Value তেও সেম কালার কোড দিবেন।

নিচের যেখানে CSS লিখবেন ওখানে CSS ভেলু তে অবশ্যই সেই ভেরিয়েবল নেম দিবেন। নিচের কোডের মতো করে।

<b:skin><![CDATA[
/* Variable definitions
<group description="heading H2" selector=".tst">
<Variable name="clrtst" description="TEXT Color" type="color" default="#FF0000" value="#0000ff"/>
</group>
*/
.tst{color:$(clrtst)}
]]></b:skin>

আপনার HTML কোড এ অবশ্যই Selector ক্লাস নেম ব্যবহার করবেন নয়তো আপনার কোড কাজ করবেন না। যেমন,
<div class="tst">TEST GROUP</div>

ব্লগার ডেভেলপমেন্ট এর বিভিন্ন বিষয় জানতে উইকিজানা এর সাথেই থাকুন।

এই ব্লগটি যদি আপনার কাজে লেগে থাকে বা আপনার উপকারে আসে তবেই আমাদের স্বার্থকতা। আপনাদের জানার চাহিদা মেটাতেই আমরা ব্লগিং করে থাকি। পরিচিত কাউকে এই তথ্য জানাতে শেয়ার করুন। উইকিজানা ব্লগে ফ্রীল্যান্সিং, এডুকেশন ও তথ্যমূলক ব্লগ প্রচার করে থাকে। আরো বিভিন্ন জনপ্রিয় ব্লগ পড়তে নিচে স্ক্রল করুন।

About the Author

I am a web designer and developer. I regularly work for different companies. I try to write a little on this blog when I have time. If you can learn something from this blog, then I will be successful.
I have a blog for learning web design, the nam…

إرسال تعليق

কোনো প্রশ্ন থাকলে অনুগ্রহ করে বিস্তারিত ভাবে বলুন, আশা করি আমরা আপনাকে হেল্প করতে পারবো।তবে অনুগ্রহ করে স্পাম করবেন না।
إرسال تعليق

All information presented on this website is collected from internet. We may make unintentional mistakes while writing the post. We sincerely apologize for any unpleasant mistakes and WikiJana.Com is not responsible for any incorrect information. If you see any incorrect information please let us know immediately. We will try to fix it as soon as possible. Click here to report.

Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.