Front-end Web Developer | Tampa, FL

Archive for the ‘CSS and HTML tips and tricks’ Category

Standard fonts for all browsers and platforms PC and MAC

Posted on: September 22nd, 2010 by admin No Comments

 

Explanations:

 

1. The Ornage color PC (Windows fonts)

 

2. The Blue color Mac fonts

 

Arial, Arial, Helvetica, sans-serif

 

In your styles it will look: font-family: Arial,Helvetica,sans-serif;

 

List of browser safe font:

 

Normal style fonts
Arial, Arial, Helvetica, sans-serif
Arial Black, Arial Black, Gadget, sans-serif
Comic Sans MS, Comic Sans MS, cursive
Courier New, Courier New, Courier, monospace
Georgia, Georgia, serif
Impact, Impact, Charcoal, sans-serif
Lucida Console, Monaco, monospace
Lucida Sans Unicod, Lucida Grande, sans-serif
Palatino Linotype, Book Antiqua, Palatino, serif
Tahoma, Geneva, sans-serif
Times New Roman, Times, serif
Trebuchet MS, Helvetica, sans-serif
Verdana, Verdana, Geneva, sans-serif
MS Sans Serif, Geneva, sans-serif
MS Serif, New York, serif

 

Note that while the ClearType smoothing is applied always, the basic font smoothing of Windows 98/2000/XP is applied only to certain font sizes. That sizes can be specified by the font designer, but usually they are in the ranges of 0-6 and 14+ points (pt).

How to create button tags in WordPress

Posted on: September 14th, 2010 by admin No Comments

 

Log in on your server and find folder: /wp-includes/ ,  “the_tags” located in file category-template.php about line 840

 

The string must looks like:

 

{CODE type:php;}
$term_links[] = ‘<a href=”‘ . $link . ‘” rel=”tag”>’ . $term->name . ‘</a>’;
{/CODE}

 

Now you can add any HTML code for you tags links. For example add < span > inside tag < a >

 

{CODE type:php;}
$term_links[] = ‘<a href=”‘ . $link . ‘” rel=”tag”><span>’ . $term->name . ‘</span></a>’;
{/CODE}

 

How to create stretch buttons view my last lesson.

 

I hope this small lesson will help you. 🙂

How to create link to login page in Joomla?

Posted on: May 18th, 2010 by admin No Comments

 

If we want to add a bit of user interactivity then we first need to get the users name with a JFactory call and store it in a variable which we place in the php section of the template:

 

{CODE type:php;}

$username =& JFactory::getUser();

{/CODE}

 

Then we can use this to show Register, Login links or Logout link, it depends of user logged in or not.

 

{CODE type:php;}

<div id=”loginArea”>
<?php
 if ($username->guest) {
 echo ‘<a href=”http://www.YourSiteName.com/index.php?option=com_user&view=register” title=”Register”>Refister</a> ‘;
 echo ‘<a href=”http://www.YourSiteName.com/index.php?option=com_user&view=login” title=”Login”>Login</a>’;
   } else {
   $name = $username->get(‘username’);
   echo ‘Hi ‘ . $name . ‘ –  <a href=”http://www.YourSiteNome.com/index.php?option=com_user&view=logout” title=”Logout”>Logout</a>’;
   }
 ?>
</div><!– End Login Area –>

{/CODE}

 

I hope it will be useful for you 🙂

PSD to HTML. How to design my own website and add it to HTML? Lesson 2

Posted on: May 11th, 2010 by admin No Comments
  • On top toolbar click on File -> Save for Web & Devices…
  • Hold Shift button and click to select each slices then press Save. The files name that i use for Body background is body-bg.jpg and for Header header-bg.jpg
  •  

    Step 2. Creating HTML code:

     

    1. First of all create folder with name my_new_project
    2. This folder contain two folders images and css folder.

     

    Open your favorite code editor (for Mac i use Coda and for PC i use DreamViewer) and create new file index.html in my_new_project folder.

     

    I use one main DIV with class wrapper, with width: 950px. So, this is our layout:

     

    {CODE type:php;}

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
    <html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en” lang=”en”>
    <head>
    <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
    <meta name=”keywords” content=”PSD to HTML Lesson from sopov.com” />
    <meta name=”title” content=”PSD to HTML Lesson from sopov.com” />
    <meta name=”author” content=”Sopov.com” />
    <meta name=”description” content=”PSD to HTML Lesson from sopov.com” />
    <title>PSD to HTML. How to design my own website and add it to HTML</title>
    <link rel=”stylesheet” href=”css/style.css” type=”text/css” />
    </head>
    <body>
    <div class=”wrapper”>
        <div class=”headerLogin”>
        </div><!– End headerLogin –>

        <div class=”header”>
        </div><!– End header –>

        <div class=”mainNavBar”>
        </div><!– End mainNavBar –>

        <div class=”content”>

            <div class=”mainContent”>
            </div><!– End mainContent –>

            <div class=”sideBar”>
            </div><!– End sideBar –>

        </div><!– End content –>

        <div class=”footerLinks”>
        </div><!– End footerLinks –>

        <div class=”copyright”>
        </div><!– End copyright –>

    </div><!– End wrapper –>
    </body>
    </html>

    {/CODE}

     

    Login area

    {CODE type:php;}

    <div class=”headerLogin”>
        Welcome, Guest <a href=”/” title=”Login”>Login</a> | <a href=”/” title=”Sign Up”>Sign Up</a>
    </div><!– End headerLogin –>

    {/CODE}

     

    Header

    Here will be our Title and Description, usually i use h1/h2 tags respectively.

     

    {CODE type:php;}

    <div class=”header”>
        <h1 class=”blogName”>My Blog Name</h1>
        <h2 class=”blogDescription”>My Blog Description</h2>
    </div><!– End header –>

    {/CODE}

     

    Main Menu

     

    {CODE type:php;}

    <div class=”mainNavBar”>
        <a href=”/” title=”Home”>Home</a>
        <a href=”/” title=”About Us”>About Us</a>
        <a href=”/” title=”Blog”>Blog</a>
        <a href=”/” title=”Contact Us”>Contact Us</a>
    </div><!– End mainNavBar –>

    {/CODE}

     

    Content

    Content contains two main DIVs mainContent with your blog text and sideBar with sidebar navigations. Also at the end of our code i used closed DIV with class clr. This class clearing our sidebar floating.

     

    {CODE type:php;}

    <div class=”content”>
        <div class=”mainContent”>
            <div class=”blogContent”>
                <h3 class=”blogTitle”>Sandra Bullock will not attend Kids’ Choice Awards</h3>
                <div class=”autor”>By <a href=”/” title=”Alexis Chiu”>Alexis Chiu</a>.</div>
                <div class=”date”>March 26, 2010 6:30 p.m.</div>
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
                <p>Bullock, who has remained out of the public eye since the scandal broke over husband Jesse James’s alleged infidelities, is nominated as Favorite Movie Actress for her work in The Blind Side and The Proposal. She’s vying with Miley Cyrus, Megan Fox and <a href=”/” title=”Zoe Saldana”>Zoe Saldana.</a></p>
                <blockquote>
                    Last year, Bullock, 45, teamed up with Hugh Jackman at the ‘tween-heavy Kids’ Choice Awards, and was all smiles — even as she and the X-Men star were drenched with gallons of the event’s signature green slime.
                </blockquote>
                <div class=”tags”>Tags:
                    <a href=”/” title=”drenched”>drenched</a>,
                    <a href=”/” title=”with gallons”>with gallons</a>,
                    <a href=”/” title=”of the events”>of the events</a>,
                    <a href=”/” title=”signature green”>signature green</a>,
                    <a href=”/” title=”slime”>slime</a>
                </div><!– End tags –>
                <div class=”postedIn”>Posted in:
                    <a href=”/” title=”Tips &amp; FAQs”>Tips &amp; FAQs</a> |
                    <a href=”/” title=”Edit “>Edit</a> |
                    <a href=”/” title=”Print This Post”>Print This Post</a> |
                    <a href=”/” title=”5 Comments”>5 Comments</a>
                </div><!– End postedIn –>
            </div><!– End blogContent –>
            <div class=”blogContent”>
                <h3 class=”blogTitle”>Dennis Hopper attends Hollywood Walk of Fame ceremony</h3>
                <div class=”autor”>By <a href=”/” title=”Alexis Chiu”>Alexis Chiu</a>.</div>
                <div class=”date”>March 26, 2010 6:30 p.m.</div>
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
                <ul>
                    <li>
                        Hopper’s doctor called him “extremely weak” and said he weighs barely 100 pounds in a court document filed this week, but he walked on his own during the 45 minutes he was at the ceremony.
                    </li>
                    <li>
                        With his 6-year-old daughter, Galen, by his side, Hopper waved and bowed to hundreds of fans lining a barricade along Hollywood Boulevard.
                    </li>
                </ul>
            </div><!– End blogContent –>
        </div><!– End mainContent –>
        <div class=”sideBar”>
            <h4 class=”sidebarTitle”>Categories</h4>
            <ul class=”sideBarMenu”>
                <li><a href=”/” title=”News &amp; Media”>News &amp; Media</a></li>
                <li><a href=”/” title=”Tips &amp; FAQs”>Tips &amp; FAQs</a></li>
                <li><a href=”/” title=”News &amp; Media”>News &amp; Media</a></li>
                <li><a href=”/” title=”Tips &amp; FAQs”>Tips &amp; FAQs</a></li>
            </ul>
            <h4 class=”sidebarTitle”>Recent Posts</h4>
            <ul class=”sideBarMenu”>
                <li><a href=”/” title=”Iraq’s Allawi ‘open to talks'”>Iraq’s Allawi ‘open to talks'</a></li>
                <li><a href=”/” title=”At least 42 die in Iraq market blasts”>At least 42 die in Iraq market blasts</a></li>
                <li><a href=”/” title=”Thai military pulls back amid protests”>Thai military pulls back amid protests</a></li>
                <li><a href=”/” title=”Mubarak back in Egypt after surgery”>Mubarak back in Egypt after surgery</a></li>
            </ul>
            <h4 class=”sidebarTitle”>Archives</h4>
            <ul class=”sideBarMenu”>
                <li><a href=”/” title=”June 2010″>June 2010</a></li>
                <li><a href=”/” title=”May 2010″>May 2010</a></li>
                <li><a href=”/” title=”April 2010″>April 2010</a></li>
                <li><a href=”/” title=”March 2010″>March 2010</a></li>
            </ul>
        </div><!– End sideBar –>
        <div class=”clr”></div>
    </div><!– End content –>

    {/CODE}

     

    Footer

    The Footer contain four floating DIVs (columns) with class names: footerMenu, followUs, links, support. And the same as previous code clearing DIV with class clr.

     

    {CODE type:php;}

    <div class=”footerLinks”>
        <div class=”footerMenu”>
            <h5 class=”footerLinksTitle”>Menu</h5>
            <ul>
                <li><a href=”/” title=”Home”>Home</a></li>
                <li><a href=”/” title=”About us”>About us</a></li>
                <li><a href=”/” title=”Blog”>Blog</a></li>
                <li><a href=”/” title=”Contact us”>Contact us</a></li>
            </ul>
        </div><!– End footerMenu –>
        <div class=”followUs”>
            <h5 class=”footerLinksTitle”>Follow us</h5>
            <ul>
                <li><a href=”/” title=”Twitter”>Twitter</a></li>
                <li><a href=”/” title=”Facebook”>Facebook</a></li>
                <li><a href=”/” title=”Email”>Email</a></li>
                <li><a href=”/” title=”RSS Feed”>RSS Feed</a></li>
            </ul>       
        </div><!– End followUs –>
        <div class=”links”>
            <h5 class=”footerLinksTitle”>Links</h5>
            <ul>
                <li><a href=”/” title=”PSD 2 HTML”>PSD 2 HTML</a></li>
                <li><a href=”/” title=”Tips and Tricks for the MacOS X”>Tips and Tricks for the MacOS X</a></li>
                <li><a href=”/” title=”Sopov.com”>Sopov.com</a></li>
            </ul>       
        </div><!– End links –>
        <div class=”support”>
            <h5 class=”footerLinksTitle”>Support</h5>
            <ul>
                <li><a href=”/” title=”Terms of Use”>Terms of Use</a></li>
                <li><a href=”/” title=”Privacy Policy”>Privacy Policy</a></li>
                <li><a href=”/” title=”License Agreement”>License Agreement</a></li>
                <li><a href=”/” title=”Online Support”>Online Support</a></li>
            </ul>       
        </div><!– End support –>
        <div class=”clr”></div>
    </div><!– End footerLinks –>

    {/CODE}

     

    Copyrights area

    {CODE type:php;}

    <div class=”copyright”>
        &copy; 2010 Your Blog Name All rights reserved.
    </div><!– End copyright –>

    {/CODE}

     

    Ok, we’ve finished our HTML mockup  lets see, <a href=”” title=”view our mockup without CSS styles”>what we get</a>. As you can see it isn’t what we have in PSD file, but it has all our content laid out in a logical, readable way. So, next step is adding CSS style to our HTML page.

     

    Step 3. Adding CSS to our HTML:

    Fist of all we have to create new document in my_new_project/css folder with name style.css and add link to this style to our html code, between head tag:

     

    {CODE type:php;}

    <head>

    <link rel=”stylesheet” href=”css/style.css” type=”text/css” />

    </head>

    {/CODE}

     

    Step 4. Reset our HTMLs tags style

    In our style.css we’re going to use a simple css reset to get rid of those pesky margins and styles:

     

    {CODE type:php;}

    body, div, dl, dt, dd, li, pre,form, fieldset, input, textarea, p, blockquote, th, td, button { margin: 0; padding: 0; }h1, h2, h3, h4, h5, h6 { margin: 0; padding: 0; font-size: 100%; font-weight: normal; }address, caption, cite, code, dfn, em, strong, var { font-style: normal; font-weight: normal; }table { border-collapse: collapse; border-spacing: 0; } caption, th { text-align: left; font-weight: normal; font-style: normal; }acronym, abbr, fieldset, img { border: 0;}:focus { outline: 0; }

    {/CODE}

     

    Also, we need a special class .clr for clearing our floating DIVs:

     

     {CODE type:php;}

    .clr {clear:both; height:0; overflow:hidden; margin:-1px 0 0 0;}

    {/CODE}

     

    Step 5. Tags style

    All links in our site will be red color (#ff3300) with no underline, text blockquote has red line from the left side of quote, and the tag P will have margin top and bottom 20px.

     

    {CODE type:php;}

    a {
    text-decoration: none;
    color: #ff3300
    }

    a:hover {
    text-decoration: underline
    }

    blockquote {
    margin: 10px 0 10px 30px;
    padding: 10px 0 10px 30px;
    border-left: 1px solid #ff3300;
    }

    p {
    margin: 20px 0;
    }

    {/CODE}

     

    Step 5. Layout style

    As you can see our design has body background, so in CSS file we added next code:

     

    {CODE type:php;}

    body {
    background: url(../images/body-bg.jpg) repeat-x #556666 top left;
    text-align: center;
    font-family: Arial, Arial, Helvetica, sans-serif;
    font-size: 100%;
    }

    {/CODE}

     

    Let’s take a look on our background code:

    url(../images/body-bg.jpg) – this is path to our background image that we sliced from our PSD mockup.

    repeat-x – our background will repeat by X.

    #556666 – background color of our page.

    top left – this is our background position.

     

    {CODE type:php;}

    .wrapper {
    width: 950px;
    margin: 0 auto;
    text-align: left;
    }

    .content {
    background: #fff;
    }

    .mainContent {
    width: 653px;
    float: left;
    margin: 25px 0 25px 25px;
    }

    .sideBar {
    width: 160px;
    float: right;
    margin: 25px 25px 25px 0;
    padding: 20px;
    background: #edeeee
    }

    {/CODE}

     

    This is our main layout styles: wrapper, content, mainContent and sideBar:

    wrapper – our main DIV:

    margin: 0 auto – this is small trick place our DIV on center of browser.

    mainContent and sideBar – have parameters float: left and float: right, it giving us, this DIVs, placing next to each other.

     

    Header and Main Menu

     

    {CODE type:php;}

    .headerLogin {
    padding: 5px 0;
    text-align: right;
    font-size: small;
    color: #fff;
    }

    .headerLogin a {
    color: #333;
    }

    .header {
    background: url(../images/header-bg.jpg) repeat-x #ff8e00 bottom left;
    min-height: 85px;
    padding: 16px 0 0 25px;
    }

    .blogName {
    font-size: xx-large;
    color: #fff;
    }

    .mainNavBar {
    background: #000;
    padding: 10px;
    }

    .mainNavBar a {
    color: #ccc;
    font-size: large;
    padding: 0 20px;
    }

    {/CODE}

     

    Content style

     

    {CODE type:php;}

    .mainContent {
    color: #333;
    }

    .blogContent {
    margin-bottom: 30px;
    }

    .blogTitle {
    font-size: x-large;
    color: #000;
    }

    .autor, .date, .tags, .postedIn {
    font-size: small;
    color: #666;
    }

    .tags a, .postedIn a {
    color: #ccc
    }

    {/CODE}

     

    Sidebar

     

    {CODE type:php;}

    .sideBar {
    font-size: small;
    }

    .sidebarTitle {
    color: #666;
    font-size: medium
    }

    .sideBarMenu {
    list-style: none;
    margin: 5px 0 20px 10px;
    padding: 0;
    }

    {/CODE}

     

    Footer links and Copyright area

    Footer has 4 columns. footerMenu, followUs, links with width: 150px (floating left) and support with width: 160px (floating right)

     

    {CODE type:php;}

    .footerLinks {
    background: #b8fafd;
    padding: 25px;
    }

    .footerMenu, .followUs, .links {
    width: 150px;
    float: left;
    }

    .support {
    width: 160px;
    padding: 0 5px 20px 20px;
    float: right;
    margin-right: 25px;
    }

    .footerLinksTitle {
    color: #333
    }

    .footerLinks ul {
    margin: 5px 0 0 10px;
    list-style: none;
    padding: 0;
    font-size: small;
    }

    .copyright {
    padding: 10px 0 10px 25px;
    font-size: small;
    background: #000;
    color: #ccc;
    margin-bottom: 20px;
    }

    {/CODE}

     

    Conclusion

    That’s it! Hopefully you’ve learned a thing or two about coding websites. Check it out in any browser, make the text bigger, make it smaller, and our layout adapts just fine. Disable CSS, and it still makes sense! I hope you can see how easy it is to make your websites less fallible! This page was very simple, without many complicated challenges. When your layouts get more complicated, it will be a bit tougher to maintain flexibility.

     

    If you have any questions, drop me a comment, and i’ll answer you ASAP.

     

    Previous Lesson

    How to create stretch buttons, menus, boxes with rounded corners from PSD file to HTML code?

    Posted on: April 29th, 2010 by admin No Comments

     

    First image:

     

    HTML and CSS source

     

    Second image:

    HTML and CSS source

     

    Note: I created first image with length 609px, you can create with any width, but i don’t think that the button will be more than this.

     

    Now we crate HTML:

     

    {CODE type:php;}
    <div class=”button”>
        <a href=”/” title=”Sample Button Text”>Sample Button Text</div>
    </div>
    <div class=”clr”></div>
    {/CODE}

    Explanations:

    I use DIV with class=”clr” for clearing “button” div with style FLOAT: LEFT;

     

    And now add CSS:

     

    {CODE type:php;}
    .button {
    background: url(images/stretch-button-bg.png) no-repeat top left;
    height: 59px;
    float: left;
    padding-left: 24px;
    line-height: 260%;
    }
    .button a {
    background: url(images/stretch-button-end.png) no-repeat top right;
    height: 59px;
    padding-right: 24px;
    display: block;
    text-decoration: none;
    color: #4d4d4c;
    }
    .clr {
    clear: both;
    height: 0;
    overflow: hidden;
    margin: -1px 0 0 0;
    }
    {/CODE}

     

    Explanations:

    I use line-height: 260% – this is for centered text by height – you can play with % value.

     

    In next sample i will show how to create stretch box and it will be stretch by X and Y.

     

    Here what we have to get:

     

    HTML and CSS source

     

    ts the same what we did with stretch button background inside background, but here we will use it three times:

     

    1. For the header of Box – two image (fist image stretch-box-bg.png is stretch background with length 1000px, second stretch-box-end.png is the end of our box)
    2. For the context background (i use only one image stretch-box-content-bg.png for left and right side, because left and right side the same)
    3. For the footer of Box (image stretch-box-btm-bg.png is stretch background with length 1000px, second stretch-box-btm-end.png is the end of our box in footer)

     

    So first is our HTML:

     

    {CODE type:php;}
    <div class=”bigBox”>
        <div class=”titleBox”>
            <h1>Stretch box title</h1>
        </div>
        <div class=”contextBackgroundLeft”>
            <div class=”contextBackgroundRight”>
                <div class=”clr”></div>
                <p>Sample text</p>
                <div class=”clr”></div>
            </div>       
        </div>
        <div class=”bottomBox”>
            <div></div>
        </div>
    </div>
    {/CODE}

     

    and CSS code:

     

    {CODE type:php;}
    .bigBox {
    width: 100%;
    }
    .titleBox {
    height: 35px;
    overflow: hidden;
    background: url(images/stretch-box-bg.png) no-repeat top left;
    }
    .titleBox h1 {
    margin: 0;
    padding: 0;
    height: 35px;
    background: url(images/stretch-box-end.png) no-repeat top right;
    line-height: 260%;
    }
    .contextBackgroundLeft {
    background: url(images/stretch-box-content-bg.png) repeat-y top left;
    }
    .contextBackgroundRight {
    background: url(images/stretch-box-content-bg.png) repeat-y top right;
    padding: 0 10px;
    }
    .bottomBox {
    background: url(images/stretch-box-btm-bg.png) no-repeat top left;
    height: 22px;
    }
    .bottomBox div {
    background: url(images/stretch-box-btm-end.png) no-repeat top right;
    height: 22px;
    }
    .clr {
    clear: both;
    height: 0;
    overflow: hidden;
    margin: -1px 0 0 0;
    }
    {/CODE}

     

    Some tricks that i used in this tutorial:

     

    {CODE type:php;}
    <div class=”contextBackgroundRight”>
        <div class=”clr”></div>
        <p>Sample text</p>
        <div class=”clr”></div>
    </div>       
    {/CODE}

     

    As you can see i used DIV with class=”clr”. If you remove it, you will see white spaces in top and bottom. This happen because we use tag < p > (or h1, h2, h3, ul….) all tags that have margin or padding will broke the box without DIV from top and bottom.

     

    That is it. If you have any questions, feel free to ask me. I hope it will be helpfull

    PSD to HTML. How to design my own website and add it to HTML

    Posted on: March 29th, 2010 by admin No Comments

     

    Step 1. How it looks:

    So our example web page is going to be based on a simple blog theme, with a WordPress blog-like structure similar to that of the default WP themes. It’s going to look something like this:

     

    PSD to HTML

     

    The idea here is not for you to reproduce my example, but for you to be able to follow along and apply the techniques to your own designs, hopefully learning a thing or two about the underlying concepts.

     

    Step 2. Photoshop

    We’re going to keep the Photoshop use here to a bare minimum, Usually I mockup an entire design in Photoshop before coding, but here I’m just going to generate a basic layout, and worry about the content later. This is an example of a different workflow, it will make more sense as we go along.

     

    Page Layout

    As I wrote above, i decide to make website 950px wide, with right sidebar’s 250px wide and main content 700px wide. I think its optimal size for our web blog.

     

    So, create new PSD document with Width: 1100px and Height: 1000px, with background color: # 556666

     

    Create body background with gradient color from # 8aa295 to # 556666;

     

    PSD to HTML

     

    Create Header with width: 950px – gradient color from # ff8d00 to # d80e00;

     

    Main Menu with width: 950px – background color # 000000;

     

    Side bar – background color # edeeee

     

    Bottom Menu with width: 950px – background color # b8fafd;

     

    Copyright with width: 950px – background color # 000000;

     

    PSD to HTML

     

    PSD to HTML

     

    Font Character
    • Login/Logout
      • Welcome text:
        • Font: Verdana
        • Font Size: 12pt
        • Color: # FFFFFF (White)
        • Link color: # 333333
        • Text decoration: underline
    • Header
      • My Blog Name:
        • Font: Verdana
        • Font Size: 30pt
        • Color: # FFFFFF (White)
      • My Blog description:
        • Font: Verdana
        • Font Size: 14pt
        • Color: # 000000 (Black)
    • Main Menu
      • Menu Links
        • Font: Verdana
        • Font Size: 18pt
        • Color: # cccccc
        • Link color: # cccccc
        • Text decoration: underline-none

     

    PSD to HTML

     

    • Content
      • Article Title
        • Font: Verdana
        • Font Size: 24pt
        • Color: # 000000 (Black)
      • Autor
        • Font: Verdana
        • Font Size: 11pt
        • Color: # 666666
        • Link color: # ff3300
        • Text decoration: underline-none
      • Publish Date
        • Font: Verdana
        • Font Size: 11pt
        • Color: # 666666
      • Content
        • Font: Verdana
        • Font Size: 14pt
        • Color: # 333333
        • Link color: # ff3300
        • Text decoration: underline-none
      • Blockquote
        • Font: Verdana
        • Font Size: 14pt
        • Color: # 333333
        • Font style: italic
      • Tags
        • Font: Verdana
        • Font Size: 12pt
        • Color: # 666666
        • Link color: # cccccc
        • Text decoration: underline
    • Sidebar
      • Sidebar Titles
        • Font: Verdana
        • Font Size: 14pt
        • Color: # 666666
      • Sidebar Text/Links
        • Font: Verdana
        • Font Size: 12pt
        • Color: # ff3300
        • Link color: # ff3300
        • Text decoration: underline-none

     

    PSD to HTML

     

    • Bottom Menu
      • Bottom Titles
        • Font: Verdana
        • Font Size: 14pt
        • Color: # 333333
      • Bottom Text/Links
        • Font: Verdana
        • Font Size: 12pt
        • Color: # 339999
        • Link color: # 339999
        • Text decoration: underline-none
    • Copyright
      • Copyright text
        • Font: Verdana
        • Font Size: 11pt
        • Color: # cccccc

     

    PSD to HTML

     

    Conclusion:

    In this tutorial we made simple design for our new blog site, next lesson we well add PSD design to HTML code.

     

    Next Lesson

    How to place footer at bottom

    Posted on: March 25th, 2010 by admin No Comments

     

    This means that the footer area will always be placed on the bottom of the page, even if there is little content. I checked this code in MAC: FF, Safari; PC: IE 6/7/8, FF, GChrome

     

    CSS Code:

    {CODE type:php;}
    * {
    margin: 0;
    padding: 0;
    }

    html, body {
    height: 100%;
    }

    #wrap {
    position: relative;
    min-height: 100%;
    }

    * html #wrap {
    height: 100%;
    }

    #wrapContent {
    padding-bottom: 100px;
    }

    #footer {
    position: relative;
    height: 80px;
    margin-top: -80px;
    background: #000;
    }
    {/CODE}

     

    HTML Code:

    {CODE type:php;}
    <div id=”wrap”>
        <div id=”wrapContent”>
            Content text
        </div>
    </div>

    <div id=”footer”>
        Footer text
    </div>
    {/CODE}

     

    I hope it will help 🙂

    Open GIF animation in Photoshop CS3 MAC and PC

    Posted on: March 24th, 2010 by admin No Comments

     

    Video tutorial for MAC:

    1. Open YourGifFile.gif in the Preview.
    2. Drag all images (tiffs usualy) into a new folder.
    3. Then open them in Photoshop.
    4. Merge them in one file
    5. In top panel click on Window -> Animation

    It is hard work, especially if the GIF contains many frames.

     

    {youtube}9kU-5WvfPQ4{/youtube}

     

    Video tutorial for PC:

    1. In Photoshop CS3 top panel click on File -> Import -> Video Frames to Layers…
    2. You will get a dialog that shows MOV, AVI, MPG, and MPEG files. So what use is this to you? Well, it is posted on the Adobe forums that this is an oversight by them. If you type in *.* in the File name: field  this will show you all files. You can now open animated GIF’s and they will display in the animation window and layers pallet.

     

    {youtube}-s6SDkvXM3s{/youtube}

     

    Thanks for PC video tutorial freescreencast.com

    Category Blog Layout Parameters (Basic) Explanations

    Posted on: March 22nd, 2010 by admin No Comments

     

    Obviously, the blog format can be used for… well, blogging. But think bigger than that when applying this to your website. Blog, in this case, is a functionality, not a technology. We routinely use the blog format for press releases, for example. The format works for anything where a client needs to post items regularly, in some pre-defined order. It’s also handy if the client is making new pages, because the client doesn’t need to make a menu link to the item. It will simply publish on the page.

     

    To make category/section blog layouts, go to the Menu manger and find the menu on which you want this link to live. Click New, then Articles, then select either section or category blog layout.

     

    You can then configure the blog format using the options below.

     

    Parameters (Basic)

     

    Under Parameters (Basic), you select the given section/category or section for the blog.

     

    You can also choose to have a description show. This is the section description (section blog) or category description (category blog). These descriptions can be created/edited by going to the Section or Category Manager, selecting the section or category, and scrolling to the bottom of the screen, where there is an editor for a description. The description is extremely handy if you need to have some fixed text at the top of your blog page.

     

    Likewise, the description image is the image associated with the section or category, which can be configured in the Section or Category manager.

     

    Then we come to # Leading, # Intro, Columns, # Links

    • # Leading is the number of “leading” blog entries. A leading entry is the first entry on the pile, which, by default, spans across the 2 default columns. If you have a single column on the page, leading doesn’t do a lot for you. So I usually set this to zero. The default is 1.
    • # intro are the number of blog entries that display with title, intro text, and a read more link, in their default setting. By default this is 4.
    • Columns are straightforward. Do you want your blog entries to appear in 2 columns (the default) or some other layout? I almost always set this to 1 column.
    • # Links are the number of blog entries at the bottom of the page, in bulleted list format, with titles only that link to the full blog entry.

    So – when I set up a blog layout, I typically set columns to 1, leading to 0, # intro to 10, and # links to 0. This gives me up to 10 intros on a page.

     

    Parameters (Advanced)

     

    I am not sure what makes these parameters so advanced, but anyway…

     

    You will find some ordering options, which are slightly different if you’re in the section or category blog setting. But generally, you’ll have a choice for category order and one for primary order.

     

    Category order refers to the categories within the section and what order those categories should appear. By default, that’s “order by primary order only”, meaning display them in the order they appear in the Category Manager. Re-order them in the category manager if you want them to appear in a different order.

     

    Title (alphabetical) and title (reverse-alphabetical) are straightforward: display the categories in order of A-Z or Z-A.

     

    Order means you’ve put the categories in a specific order in the category manager and that order should be maintained in the blog.

     

    Primary order is the order of the blog entries themselves. The options are fairly straightforward. You can order by title, author, number of hits, time published (oldest or most recent first), or “ordering”, which again is the order that the articles appear in the Article Manager.

     

    If you have a multi-column layout (see Parameters-basic), should the display of blog entries go down the column or across the column in whatever order they’re in?

     

    Pagination refers to the links on the bottom of the page. Auto means the pagination will be generated automatically as needed. In this case, this refers to the 1, 2, 3, etc links at the bottom of the page. The Pagination Results item refers to showing “Page 1 of 4”. Show a feed link will determine whether an RSS feed should show.

     

    Parameters (Component)

     

    These are the same settings as those in Article Manager parameters. Use the article manager parameters as your default settings. You can then override settings for the entire blog here. Use the individual article settings (where, again, these same items appear) to override settings on an article by article basis.

     

    Parameters (System)

     

    These are the same types of parameters you’ve seen on other menu items. But a helpful hint: if you type something into the “page title” blank, then set “show page title” to NO, the text will still appear in the HTML title tag, even if it does not appear in the body of the web page itself.

     

    So that wraps up category and section blog layouts. More on some of the other article possibilities in the coming days!

     

    Special thanks for the article joomla4web.com

    How to add styles in dropdown JCE text editor in Joomla?

    Posted on: March 20th, 2010 by admin No Comments

    Log in to the Joomla admin panel: http://YourSite.com/administrator/

     

    Click on Components -> JCE Administration -> Configuration

     

    How to add styles in dropdown JCE text editor in Joomla?

     

    Scroll down to Formatting and set Use template CSS to NO

     

    Put the path of your template CSS file into the Use Custom CSS field ie templates/YourTemplateName/css/style.css

     

    The thing is now you’ve got a big long list of styles you’ll probly never use, so cut and paste the ones you want into a new css file (style-jce.css) and point the custom CSS field to it: templates/YourTemplateName/css/simple.css

     

    How to add styles in dropdown JCE text editor in Joomla?