Monday, August 13, 2012

How to Make Nested Comments using CSS

Ok on this tutorial we'll teach you how to build nested comments using CSS

at first we make a mockup


then we use reset before we proceed on actual code of nested comments.

But on our stylesheet we combine the reset.css content to our main stylesheet so that we avoid so many http request.

HTML Code :
<div class="wrap">
<ul class="nested-comments">
<li>
<div class="user-comments">
<p><a href="#">UserName</a></p>
<em>August 13, 2012</em>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</p>
<p><a href="#">Reply</a></p>
</div>

<ul class="nested-comments">
<li>
<div class="user-comments">
<p><a href="#">UserName</a></p>
<em>August 13, 2012</em>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</p>
<p><a href="#">Reply</a></p>
</div>
<ul class="nested-comments">
<li>
<div class="user-comments">
<p><a href="#">UserName</a></p>
<em>August 13, 2012</em>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</p>
<p><a href="#">Reply</a></p>
</div>
</li>
</ul><!-- third nested comments -->
</li>
</ul><!-- second nested comments -->
</li>
</ul><!-- main nested comments -->

<ul class="nested-comments">
<li>
<div class="user-comments">
<p><a href="#">UserName</a></p>
<em>August 13, 2012</em>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</p>
<p><a href="#">Reply</a></p>
</div>
</li>
</ul>
</div>


CSS Code :

body {
background: #eee;
font: 11px/12px sans-serif;
}

.wrap {
width: 600px;
margin: 100px auto;
}

ul.nested-comments li {
margin-left: 50px;
ul.nested-comments li ul {
border-left: 1px solid #dddddd;
position: relative;
}

ul.nested-comments li ul:before {
content: '';
border-bottom: 1px solid #dddddd;
width: 20px;
position: absolute;
top: 20px;
}

div.user-comments {
background: #fff;
border: 1px solid #dddddd;
margin-bottom: 10px;
padding: 10px;

That's is you build simple nested comments ;) have fun


You download the demo file here : http://www.mediafire.com/?s118rrrsassrnks







Wednesday, August 8, 2012

Simple optimization tips for your website resources

By some simple online tool you can optimize your site. So let's begin

Compress your images
By compressing your images without any effect on image quality you can lower it by 30% using online tool Yahoo! Smush.it it uses optimization techniques specific to image format to remove unnecessary bytes from image files. It is a "lossless" tool, which means it optimizes the images without changing their look or visual quality.

Minify your CSS
Compress your css using online tool CSS Drive CSS Compressor this utility will compress your CSS to increase loading speed and save on bandwidth as well.

Minify your Javascript
Compress your javascript using online tool JSCompress this allows you to compress and minify your javascript files. Compressed javascript files are ideal for production environments since they typically reduce the size of the file by 30-90%. Most of the filesize reduction is achieved by removing comments and extra whitespace characters that are not needed by web browsers or visitors.

Note : It is recommended to rename your CSS/JS for an example style.css to style.min.css or on JS script.css to script.min.js for you to have a original backup of your CSS/JS.  



Eways search engine v5.0.1 update

How to use Eways search engine to search for some of your favorite sites like Facebook, Twitter, Google, Bing, YouTube, Yahoo and many more.

We build a search operator you can use to search easily on some of the sites that we'd mentioned  earlier and here are the list on how to use them.

[you search query][space]!fb
To search automatically on Facebook. 

[you search query][space]!yt
To search automatically on YouTube

[you search query][space]!yahoo
To search automatically on Yahoo

[you search query][space]!wiki
To search automatically on Wikipedia

[you search query][space]!bing
To search automatically on Wikipedia

[you search query][space]!google
To search automatically on Google

[you search query][space]!twt
To search automatically on Twitter

Operator :

!fb - Facebook
!yt - Youtube
!yahoo - Yahoo
!wiki - Wikipedia
!bing - Bing
!google - Google
!twt - Twitter

Upon release of version 5 of our search engine we developed Instant Answer that soon it will serve more features in a future for example if you want to search a certain personality or person on twitter you may use @[username]

Soon our search engine will support also definite answer for some of your specific question example you type 'what is my ip address?' on our search bar then we will show you an exact answer for your search including related results on your query.

That's all for now on v5.0.1 more upcoming update soon!



Welcome to Eways Blog

Today we have released our official blog site where in user can see our new product updates as well as on our services. In this blog we will release some great tutorials regarding web from our developers, we will post also regarding business tips or how to make your ads more effective online and many more.