Pages

Tuesday, May 27, 2014

CSS - Cascade use Style Sheet

CSS defines however HTML components area unit to be displayed.CSS describes the visual vogue (appearance, layout, color, fonts) of HTML components.CSS was designed to separate document layout from document content (which greatly improved HTML flexibility and reduced HTML complexity).

CSS is simple to be told. you'll be able to use HTML component names as selectors, and list the design  CSS3 properties within kinky brackets:

CSS saves lots of work!

The CSS definitions area unit usually keep in external files. this allows an internet developer to alter the looks and layout of each page during a internet site, simply by writing one single file!

If you have got ever tried to alter the design of all components altogether your HTML pages, you perceive however you'll be able to save lots of labor by storing the design definitions in associate external file.

Friday, May 23, 2014

polished Drop Menu with CSS only make the build

Why can we like to use Drop Menu to show our navigation? as a result of, it saves house for our web site. If you’re building an internet site with several classes, you would like to use sink menu technique evidently. we are able to realize over net plenty of tutorials show North American country the way to build a Navigation with drop result by victimization JavaScript. Today, with this tutorial, you'll see a easiest method to create a same result by victimization CSS solely. With some CSS make-up, your menu are going to be elegant. undecided that one is best, except for certain it’s the best menu comes with drop effect: horizontal and vertical navigation.

Step 1: HTML Code

As I same on top of, this tutorial comes with CSS solely, you don’t have to be compelled to embrace any JavaScript to your  tag

  <ul id="navigation">
    <li class=""> <a href="#">Parent Item 1</a> </li>
    <li class=""> <a href="#">Parent Item 2</a>
      <ul>
        <li class=""> <a href="#">Child Item 1</a> </li>
        <li class=""> <a href="#">Child Item 2</a> </li>
        <li class=""> <a href="#">Child Item 3</a> </li>
        <li class=""> <a href="#">Child Item 4</a> </li>
        <li class=""> <a href="#">Child Item 5</a> </li>
      </ul>
    </li>
    <li class=""> <a href="#">Parent Item 3</a>
      <ul>
        <li class=""> <a href="#">Child Item 1</a> </li>
        <li class=""> <a href="#">Child Item 2</a> </li>
      </ul>
    </li>
    <li class=""> <a href="#">Parent Item 4</a> </li>
  </ul>

Step 2: CSS Code

Ya! consider CSS code below. i will be able to organize CSS code generator into every applied half. CSS code for the hold Navigation and Parent things is:

/* Navigation */
#navigation {
    list-style: none;
    font-family: "Century Gothic", Verdana, Arial, Sans-Serif;
    margin: 0;
    padding: 0;
    font-size: 1.2em;
}

/* CSS for each Parent Item */
#navigation li
{
    clear: both;
    height: 2em;
}

#navigation li a
{
    float: left;
    display: block;
    padding: 4px;
    text-decoration: none;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 5px;
    margin-right: 10px;
}

/* Change background color and font color of parent items when mouse hover */
#navigation li:hover a,
#navigation li a:hover
{
    background: #999;
    color: #fff;
}
 Finally, we've to reset and re vogue the link within every kid item as a result of the link
 already formatted higher than, you'll be able to realize it within css code block of Parent Item.
 
/* Reset and re style link of each child item */
#navigation li:hover ul li a,
#navigation ul li a
{
    display: inline;
    padding: 0 6px 0 0;
    float: none;
    text-transform: lowercase;
    color: #999;
    background: none;
}

#navigation li:hover ul li a:hover,
#navigation ul li a:hover
{
    background: none;
    color: #000;
}

That’s all we want to create the Navigation works.

[smart ads]

In this CSS tutorials, I solely show you ways to create the horizontal drop. you'll simple to try to to a similar with sink vertical menu result by downloading my code.

Advanced CSS Menu Trick originate


What we wish to try to to here, is rather than merely sterilization the state of the navigation item the user is presently rolling over, we wish to change the non navigation things similarly. this may facilitate focus the users attention on the item they need elect on, and make a brand new look and grieve the location overall. wish to examine it in action? cross-check my demo page before we have a tendency to begin.

The first step – CSS roll overs

The first step of the sport is building some CSS roll overs. we wish to stay things accessible thus I actually have opted to use Associate in Nursing IR technique. basically we have a tendency to produce a picture that has each the static, active and rolled over state all lined up next to every different. we have a tendency to then set the image because the background of the component, however the breadth is simply wide enough for one state of the image (so if the button image is 600px wide with all 3 states, we have a tendency to build the navigation component as a 200px wide button). we have a tendency to then set the text indent very high and overflow to hidden in order that it pushes the text out of the box. Then we have a tendency to solely see the image despite the fact that there's still hypertext markup language text on the page for search engines and accessibility.

The CSS

#main_nav { list-style: none; margin: 0; padding: 0; }
#main_nav li { float: left; }
#main_nav li a { text-indent: -999999px; overflow: hidden; display: block; height: 72px; } 

#home { background: url(../images/navigation/home.gif); width: 103px; }
#home.active { background: url../images/navigation/home.gif) -103px 0; } 
 

 The HTML

<ul id="main_nav">
   <li><a href="index.html" accesskey="3" id="home" title="Home Page">Home Page</a></li>
   <li><a href="about-us.html" accesskey="4" id="about" title="About 3.7 Designs">About Us</a></li>
   <li><a href="web-design.html" accesskey="5" id="webdesign" class="active" title="Web Design and Development">Web Design</a></li>
   <li><a href="graphic-design.html" accesskey="6" title="Graphic Design and Marketing" id="graphicdesign">Graphic Designs</a></li>
   <li><a href="keyword-optimization/michigan-seo.html" accesskey="7" title="Search Engine Optimization and Marketing" id="seo">Search Engine Optimization SEO</a></li>
   <li><a href="ann-arbor-marketing.html" accesskey="8" id="contact" title="Contact Us">Contact Us</a></li>
  </ul> 
 
Then {when we have a tendency to|once we|after we} wish to vary the state of the button we merely modify the background position to be -200px (or the dimensions of the button itself) actuation the various state of the button into read. the rationale for doing it this manner then merely swapping pictures, is that the latter methodology tends to form a flicker in some browsers.

At now the general public have it set in order that if Associate in Nursing item is hovered on (#home for example) it switches the background-image position. This creates the quality run of the mill css roll over. but we wish to try to to one thing else, one thing a lot of distinctive. we wish to own each roll over item on the menu amendment except the one you're hovering on. this needs a little CSS trickery!

IE7, Safari, Firefox, all support the :hover pseudo selectors thus let’s profit of that. What we'd like to try to to is have all the menu things amendment the background-image position once the menu item itself has been rolled over. Then the item that's hovered on is ready to own the background-position: 0px to stay it from moving once the remainder do.

The CSS

 #main_nav:hover li a#webdesign { background-position: -280px; }
 #main_nav:hover li a#home { background-position: -206px; }
 #main_nav:hover li a#graphicdesign { background-position: -340px; }
 #main_nav:hover li a#contact { background-position: -232px; }
 #main_nav:hover li a#about { background-position: -242px; }
 #main_nav:hover li a#seo { background-position: -540px; 

This pulls every menu item’s background position back once any of #main_nave has been hovered on. currently all we've got to try to to is ready the hovered things to own a background-position of 0

#home { background: url(../images/navigation/home.gif); width: 103px; }
 #home:hover { background: url(../images/navigation/home.gif) 0 0 !important; }

The HTML5  is set, already coded! currently you're able to rock and roll apart from that plagiary IE5.5+. fortuitously there has been a behavior file developed referred to as shoveler.ht c that may fix this issue. merely transfer it, and duplicate Associate in Nursing d paste the subsequent code into an IE5+ specific sheet.

Bubbler – CSS discourse bubble Generator


This is a trifle CSS speech bubble generator that I started a trifle whereas past (read ‘about a year’) and engineered with some J Query UI elements and a fairly hefty quantity of JavaScript. I’ve been tomfoolery with it latterly and have created it behave properly in a very ton additional things. sadly, round the same time that I started creating this I conjointly started fiddling with ‘magnifying’ my code. to chop a protracted story short, I lost the first “expanded” version of the speech bubble generator and had to form all my modifications to the hardly decipherable version :( *update* I’ve spent a while hunting and manually increasing the code for the speech bubble generator! this implies I will currently do bug fixes and different enhancements :D i assume I’ll simply ought to be additional careful in future :D

Anyway, plow ahead and create yourself some CSS speech bubbles! {they simply|they only|they merely|they simply|they solely} break out just one HTML5 tag, and therefore the CSS3 that gets generated is accessible from the pull down tab on the highest right.

Monday, May 19, 2014

CSS Layout Inventor | CSS architect


About the CSS Layout Generator

The CSS Layout Generator was 1st free by Tony Arlette in Gregorian calendar month 2003, since then over 871,000 layouts are generated. Updated in Gregorian calendar month 2010, HTML5 doc type will currently be designated and a straightforward HTML5 model with applicable tags are created. different hypertext mark-up language and XHT

The generator helps you produce the structure of your web site model victimization valid HTML and CSS.

You can produce a fluid or fastened breadth floated column layout, with up to three columns and with header and footer. Values is laid out in either pixels, ems or percentages.

The generator needs a contemporary DOM capable browser with JavaScript enabled.
Instructions

To create your layout choose the structural parts your web site needs (header, footer, columns). Then specify a size within the field provided and opt for a background color from the color someone below.

Info popups square measure out there wherever you see   icon, simply hover over it for additional data.

Join the CSS Forum to recommend changes or kindle facilitate wherever required.
ML doc types square measure still out there.

A presentation subject to Object Oriented CSS

 

What is Object adjusted CSS?


The idea of ‘Object adjusted Programming’, is widespread among developers, and forms the essential for any trendy programing language. options like knowledge abstraction, modularity and inheritance build it a favorite in committal to writing large-scale applications.

Object adjusted CSS, because the name suggests, is implementing the ideas of OOP in structuring and building CSS3 rules, that area unit simple to recycle, thereby reducing the loading time and increasing the performance of websites incredibly! The key purpose here is, to spot, build and elegance standard reusable ‘objects’ in a very page, and to recycle it in multiple instances by extending them with extra options where required. Here associate degree ‘object’ refers to the essential markup language markup and its CSS rules. Apparently, here, the key challenge goes to be, distinguishing the ‘object’ and building rules for it.

Following area unit some key aspects in object-oriented approach to CSS building:

  1.     produce a part library
  2.     Separate instrumentation and content / Avoid Location dependent designs
  3.     Separate Structure and skin
  4.     Extend base objects victimization category names
  5.     keep on with linguistics category names

Pros and Cons?


Following such associate degree approach of building CSS has its own pitfalls and blessings

Here area unit a couple of cases, wherever adopting such a framework ‘may’ backfire:

  1.     OOCSS is suited to actually massive websites / application that area unit crammed with reusable parts. it's going to not provide desired ends up in smaller websites and applications. thus decide reasonably reckoning on the dimensions of the add hand
  2.     If not neatly used, making the part library will end up to be a large number, and become a maintenance nightmare for alternative coders
  3.     Documentation could be a should. every block of code ought to be clearly commented out with the proper points for alternative coders to soak up the idea, that otherwise will become too tedious just in case of a information transition

Some obvious blessings of adopting this approach are:

  1.       Less lines of CSS3 code
  2.     Cleaner markup language markup, with logically smart category names and hierarchy
  3.  linguistics markup, means that a lot of SEO friendly pages
  4.  much better page optimization, with a lot of quicker loading times, since most of the parts area unit reused
  5.  climbable markup and CSS3 code generator, wherever a lot of parts will be interplanetary into the library while not heavy alternative parts, because the base objects area unit freelance of the other containers
  6.  simply theme-able layouts, since amendments to the bottom object will utterly change virtually the total presentation layer instantly

CSS3 set seascape two picture




Welcome to the CSS3_seascape_two example

This straightforward, fastened breadth web site example is free beneath a resourceful Commons Attribution three.0 License. this suggests you're absolve to transfer and use it for private and industrial comes. However, you need to leave the 'design from css3 templates.co.UK' link within the footer of the example.

This example is written entirely in HTML5 and CSS3. The photos shown during this example were taken by Pine Tree State. you'll be able to read a lot of free CSS3 internet templates here.

This example could be a absolutely documented five page web site, with associate examples page that offers samples of all the designs accessible with this style. there's additionally a operating PHP contact kind on the contact page. All of the seascapes were taken by Pine Tree State - use as you want.