Browsing "Older Posts"

Browsing Category "Web Design"

List of Events Web Design Tutorial

By Rubel - No Comments
HTML & CSS ul li List Design Tutorial

Thanks to Adrian Mato to created List of Events photoshop version and share it on dribbble. He used different color scheming on this. I have taken inspiration from his design and finally made list of events web design version. To completing full of project, I have used HTML & CSS code. If you want, you can add it to your next web design project such as on themes, plugins, HTML Templates etc.

Let's start our journey how i created this

HTML

<div class="cb-list-event">
<ul>
	<li><a href=""><span class="le-date">07 JUN</span><h3>Lorem ipsum minto wolo minuom kisas ni polar dimor jihoni molp</h3></a></li>
	<li><a href=""><span class="le-date">07 FEB</span><h3>Lorem ipsum minto wolo minuom kisas ni polar dimor jihoni molp</h3></a></li>
        <!--...-->
</ul>
</div>
Customize: You can add up to 5 <li>...</li> lists elements. First i created a div element with .cb-list-event class and i completed full project on this div. Then created an unordered list with <ul> tags. Each list item starts with the <li> tags. Added events date between <span class="le-date">...</span> elements. List of events title added between <h3>...</h3> tags.

CSS

.cb-list-event ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cb-list-event li {
    background-color: #ffffff;
    border-top: 1px solid #f1f1f1;
    box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.05);
    clear: both;
    margin: 0 0 10px;
    padding: 0;
    overflow: hidden;
    border-radius: 4px 0 0 4px;
}
.cb-list-event a {
    font-family: "Open Sans",sans-serif;
    font-size: 13px;
    text-decoration: none;
}
.cb-list-event li span.le-date {
    background-color: #bfde81;
    text-transform: uppercase;
    color: #608e23;
    float: left;
    font-weight: bold;
    height: 40px;
    line-height: 40px;
    margin: 0;
    padding: 0;
    text-align: center;
    width: 75px;
}
.cb-list-event li + li span.le-date {
    background-color: #faebb3;
    color: #937f2a;
}
.cb-list-event li + li + li span.le-date {
    background-color: #ee908e;
    color: #9e3f3c;
}
.cb-list-event li + li + li + li span.le-date {
    background-color: #81d4de;
    color: #258d9c;
}
.cb-list-event li + li + li + li + li span.le-date {
    background-color: #f3f3f3;
    color: #666;
}
.cb-list-event li h3 {
    color: #303030;
    font-weight: normal;
    height: 40px;
    line-height: 40px;
    overflow: hidden;
    margin:0;
    padding: 0 10px;
    font-size: 13px;
}
.cb-list-event li:hover {
    background-color: #d8ebb3;
    opacity: 0.9;
}
.cb-list-event li + li:hover {
    background-color: #fdf8e3;
}
.cb-list-event li + li + li:hover {
    background-color: #f9dddd;
}
.cb-list-event li + li + li + li:hover {
    background-color: #ccedf1;
}
.cb-list-event li + li + li + li + li:hover {
    background-color: #f9f9f9;
}
Customize: From .cb-list-event a class, you can change it's default font "Open Sans",sans-serif and list of events date font size 13px. Default list title background color is white that you can change from .cb-list-event li class. For changing list title default 13px font size, you need to edit from .cb-list-event li h3 class. We have used CSS selector option to changing different background and font color.

Browser support: 

That's it and i think that you have enjoyed this post.


Recommended Post:
1. CSS3 Creative Social Media Button Styles
2. Responsive Author Box Design with HTML5 & CSS3

How to Add Font Awesome Icons and Use to Your Website

By Rubel - No Comments
Font awesome is a free icon fonts. By using this icon, you can add any font icon without coding. Now at this moment, it's most popular for their awesome created icons. We also used this in our website and every blogger need to add this on their own site.

For this you need to install their CDN link. Let's see how you can add this and use on your own website.

How to Add Font Awesome CDN

Copy following code and paste it to before </head> tags 
<link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"/>
When new version will update in their website just replace red value 4.7.0 with it. You can see new version from their official website. Per new update they will add new icon so it's chance for you to add new icons in your websites.
Add Fontawesome icon and Use

How to Use Font Awesome Icons

You will find list of all available icons set here and you can add following text for display
<i class="fa fa-coffee" aria-hidden="true"></i>
in e.g. text widgets, post/page editor or anywhere.

For a exmaple Go to this link and see following image how you can find above code.

Font Awesome Icon List
Font Awesome Icon Code
Then copy your icon code and paste anywhere on your website where support HTML format.

Official Font Awesome Site: http://fontawesome.io/icons/

Happy commenting! By comment we can discuss more like a forum.

20 Important HTML Tips

By Rubel - No Comments
Professional developer make their website by their own coding way. In this post, i will share some of HTML tips which help new developer for better understand. Also there are some discuss how to write good code.


1. Always Use Close Tags

Some of tags work if you not close them but always try to close the tags. In some of fields it could be make a problem.
Wrong way
<li>Some text here.
<li>Some new text here.
<li>Your idea.
Best way
<ul>
<li>Some text here.</li>
<li>Some new text here.</li>
<li>Your idea.</li>
</ul>


2. Declare Correct Doctype

Check your code and use correct doctype at the top of your html.
<!Doctype html>


3. Don't Use Style Per Line

Don't use style per line. It can make your code harder. Besides it's not looking good.
Wrong way
<p style="color: red;">I'm going to make this text red so that it really</p>
It's better to make a style for your all css code. Like
p {
   color: red;
}


4. Add All CSS Code in </head> Tags

If you want to load your website fast, add your all css code file in </head> tags.
<head>
<title>My Favorites Kinds of Corn</title>
<link href="path/to/file.css" media="screen" rel="stylesheet" type="text/css"/>
<link href="path/to/anotherFile.css" media="screen" rel="stylesheet" type="text/css"/>
</head>


5. Add All Javascript code before </body> Tags

It's a good practise for all developer to add javascript code before </body> tags. It's also help your website to load fast.
<p>And now you know my favorite kinds of corn. </p>
<script type="text/javascript" src="path/to/file.js"></script>
<script type="text/javascript" src="path/to/anotherFile.js"></script>
</body>
</html>


6. Include All your Javascript Code in One File

Try to make a javascript file and call your javascript code from this file. It will not only make your site loading faster but also save your bandwidth.


7. Validator Your HTML Code

Download html validator plugin like Firebug. It will help you to validate your html file.


8. Always Use Lowercase Tags

Always try to use lowercase tags like div/class/attributes
Wrong way
<DIV>
<P>Here's an interesting fact about corn. </P>=
</DIV>
Correct way
<div>
<p>Here's an interesting fact about corn. </p>
</div>


9. Use H1-H6 Tags

You can change your <p> tags to <h6>. By this way, you can get some SEO facility.
<h1>This is a really important corn fact!</h1>
<h6>Small, but still significant corn fact goes here.</h6>



10. Download yslow

Download yslow. It's created by yahoo and it's help you to make a perfect site.
yslow yahoo html developer plugin


11. Internet Explorer CSS Code

Create ie.css file which load external css code for ie browser. Some of code not work in ie browser so you need to think about it.
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" media="screen" href="path/to/ie.css" />
<![endif]-->


12. Use Good Quality Code Editor

Below are few links:

13. Compress your CSS and Javascript File

Compress css and javascript file
Javascript Compression Services

CSS Compression Services

14. Unnecessary Code

After done all of work, remove unnecessary code.


15. Image "ALT" Use

Use alt in all of your image. It's good for SEO.
Wrong
<IMG src="cornImage.jpg"/>
<IMG src="cornImage.jpg"/>
Right
<img src="cornImage.jpg" alt="A corn field I visited." />


16. Show any Website Page Source

By seeing a source of any site, you can learn more and improve your web design knowledge.
Website Page Source


17. Use Style All of Your Element


18. Learn Photoshop


19. Learn to Use the New HTML Tags


20. Join in Different Forums and Blogs


That's it for today. Happy Commenting.