Posts Tagged ‘Stylesheet’

Cherry Truffle – Free Premium WordPress Theme

Monday, June 1st, 2009

Now im going to share a premium wordpress theme from Elegant WPT. This template’s price was about $19.95 but you can get it for free in here. Just download the package and upload into your wordpress directory. You can edit the header because i think you won’t like it..lol.

I have not test the theme yet, but mine (theme that i am using right now) comes from a same site. And it work fine for me. So why dont you try this one? Here is the preview page: Cherry Truffle

1. Content of package:

  • Theme Files (php, css, javascript)
  • Limit Post Plugin
  • Page Navigation Plugin
  • Psd Files (logo photoshop image)

2. Download Link:

 My 4Shared

3. Instructions:

Extract the package using winzip or winrar, open the “readme.URL” file and follow the installation instructions.

Enjoy the premium wordpress template only $0 in price. By the way, please DO NOT REDISTRIBUTE this template or article in any site. Thanks ;)

Floating Recent Post Tutorial

Saturday, May 30th, 2009

I think you already know what is this tutorial mean based on the title. This script will display your recent post in the front page (only in the front page). Kinda annoying but looks cool coz it will drop down automatically and will follow when you scroll down the page. Also, it has an option to dismiss the box so you will able to see all of the page clearly.

Ok lets get it on.

First, login to your admin panel (dashboard) then go to Appearance -> Editor

Open Main Index Template (index.php) to edit the file. Put this codes in:

<!-- Floating Menu -->
<div id="floatregbar">
<?php query_posts('showposts=1'); ?>
 	<?php while (have_posts()) : the_post(); ?>
<h2>Recent Post: <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a><span class="floatclose"><a href="" onClick="closebar(); return false">x</a></span></h2>
<div class="floatcontent">
<p>
<?php the_content_rss('', TRUE, '', 80); ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Read More >></a>
</p>
<?php endwhile;?>
</div>
</div>

Save it! Then open Stylesheet (style.css) to edit the look and display. Put this code on, you can change the property and value into whatever you like. But if you new in scripting, just copy and paste the codes.

/* 11.6 Recent Post div box */
#floatregbar{
position: absolute;
font-family: Trebuchet MS;
width: 650px;
visibility: hidden;
z-index: 100;
}
#floatregbar .floatcontent {
background: #FFF;
font-size: 11px;
text-align: justify;
line-height: 14px;
padding: 6px;
border: 1px solid #CECECE;
border-top: 1px solid #808080;
color:#000
}
#floatregbar A:hover {
text-decoration: none
}
#floatregbar H2 {
background: #E8F1D0 url(none)  repeat-x ;
COLOR: #587F02;
border-left: #CECECE;
border-right: #CECECE;
border:1px solid #808080;
font-size:11px;
FONT-WEIGHT: bold;
letter-spacing: 1px;
padding: 2px 0 2px 6px;
margin-bottom: 0px;
}
#floatregbar H2 span.floatclose {
float: right;
padding-right: 15px;
margin-top: -15px;
}

Don’t forget to save the file. And the final step, adding some javascript to make it works. Download the source codes here: Float.txt. Copy the whole codes into any text editor (notepad or dreamweaver) and save as “float.js“. Upload the file to your hosting site. Copy the url and put it in the code below:

<script type="text/javascript" src="url_float.js"></script>

Get back to template editor in your admin panel, open Header (header.php) and copy the codes above then paste before </head> tag. Hit save button and your done! Here is the live preview: http://valkhery.co.cc

(Source: dynamicdrive)

PS: You can republish this article on your blog, but please, since this was originally made by me (Valkhery), you need to put my name and my blog link as the author. Thats the way we appreciate each other. Thanks.

Cascading Style Sheet (CSS) Basic Knowledge

Saturday, May 30th, 2009

You can find many tutorial and explanation regarding CSS in the entire world wide web. And this post is one of them. But this is only the basic knowledge.

What is CSS?

  • CSS stands for Cascading Style Sheets
  • Styles define how to display HTML elements
  • Styles are normally stored in Style Sheets
  • Styles were added to HTML 4.0 to solve a problem
  • External Style Sheets can save a lot of work
  • External Style Sheets are stored in CSS files
  • Multiple style definitions will cascade into one

Cascading order – What style will be used when there is more than one style specified for an HTML element?

Generally speaking we can say that all the styles will “cascade” into a new “virtual” style sheet by the following rules, where number four has the highest priority:

  1. Browser default
  2. External style sheet
  3. Internal style sheet (in the head section)
  4. Inline style (inside an HTML element)

So, an inline style (inside an HTML element) has the highest priority, which means that it will override a style defined inside the <head> tag, or in an external style sheet, or in a browser (a default value). (Source: w3schools)

Allright, i already made a HTML page to displaying the explanation about CSS in a simple way. Just click this link:

 CSS Cheat Sheet

If you still feelin hard to understand, dont mind to post your question here. I will try to answer it quickly.