>
AttriCSS is a classless css style sheet that style normal ugly html to beautiful representable website.
For faster prototyping of backend logic on front end without any use of classes and just using html.
Above navbar is responsive by wrapping ul in a div with overflow attribute.
NOTE We use font-awasome for icons.
<nav>
<header>
<a href="#">Hello World</a>
<label for="nav"><i class="fas fa-bars"></i></label>
</header>
<input type="checkbox" id="nav" hidden checked>
<div overflow>
<ul>
<!--active link in navbar with active attribute-->
<li active><a href="#">Home</a></li>
<li><a href="#">Discover</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
</nav>
This is just a now normal paragraph.
and below are the available lists
Unordered list (bold)
Monospaced
Ordered list (bold)
“If you knew what I know about the power of giving you would not let a single meal pass without sharing it in some way.”
<blockquote>
<p>
...
</p>
<footer>Quote by <cite>Lord Buddha</cite></footer>
</blockquote>
NOTE You can use prism.js for code highlighting.
# Python program to mail merger
# Names are in the file names.txt
# Body of the mail is in body.txt
# open names.txt for reading
with open("names.txt",'r',encoding = 'utf-8') as names_file:
# open body.txt for reading
with open("body.txt",'r',encoding = 'utf-8') as body_file:
# read entire content of the body
body = body_file.read()
# iterate over names
for name in names_file:
mail = "Hello "+name+body
# write the mails to individual files
with open(name.strip()+".txt",'w',encoding = 'utf-8') as mail_file:
mail_file.write(mail)
Horizontal line below
NOTE Tables become responsive if you wrap the table with a div and add overflow attribute to it.
Example
<div overflow>
<table>
...
</table>
</div>
Head 1 | Head 2 | Head 3 | Head 4 | Head 5 |
---|---|---|---|---|
Lorem. | Cum. | Rem. | Sequi. | Maiores. |
Officiis! | Similique? | Ducimus. | Accusamus? | Nam! |
Molestias? | Sit. | Consectetur! | Accusantium? | Similique? |
Nam. | Doloremque? | Unde. | Sed. | Eaque. |
Cumque. | Voluptas. | Magnam! | Ipsam! | Nobis. |
Normal inputs based elements like input, select, etc are style based on below structure.
<form>
...
<div>
<label for="input">Input lable</label>
<input type="text" id="input">
</div>
...
</form>
Textarea looks like this and it is also responsive.
NOTE Buttons are also modified based on attributes, for secondary use secondary & disabled for disabled button respectively.
<button>Primary</button>
<button secondary>secondary</button>
<button disabled>Disabled</button>