/* Theme Name: Brightpage Theme URI: http://www.templatepanic.com/ Description: A theme for Wordpress. Version: 1.2 Author: Effi Author URI: http://www.templatepanic.com/articles/brightpage-wordpress-theme License: GNU General Public License License URI: license.txt Tags: custom-header, threaded-comments, fixed-width, right-sidebar, two-columns */ /* ===================== import css ===================== */ @import "reset.css"; @import "nivo-slider.css"; /* ===================== general ===================== */ body { font: 500 13px/19px Tahoma, 'Trebuchet MS', Arial, sans-serif; color: #777; text-align: left; background: #8a8a8a url(color-bg/images/light-gray.jpg); } .wrapper { background: #fff url(images/bg-grad.png) repeat-x top center; padding: 0; margin: 20px auto; } a { color: #777; text-decoration: none; } a:hover { text-decoration: underline; } p { padding: 0 0 15px 0; } p img { padding: 0; max-width: 100%; } pre { margin: 10px 0; padding: 15px; background: #eee; border: 1px solid #ddd; clear: both; width: 558px; overflow: auto /*--If the Code exceeds the width, a scrolling is available--*/; overflow-Y: hidden /*--Hides vertical scroll created by IE--*/ ; } small { font-size: 11px; line-height: 12px; } strong { color: #111; } h1, h2, h3, h4, h5, h6 { padding: 10px 0 0 0; margin: 0; color: #555; font-family: 'Forum', Georgia, Times; } h1 { font-size: 32px; line-height: 36px; font-weight: 300; } h2 { font-size: 28px; line-height: 32px; font-weight: 300; } h3 { font-size: 22px; line-height: 28px; font-weight: 300; } h4 { font-size: 20px; line-height: 24px; font-weight: 300; } h5 { font-size: 16px; line-height: 20px; font-weight: 300; } h6 { font-size: 12px; line-height: 14px; font-weight: 300; } h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { color: #333; } hr { display: none; } input, textarea { font-family: Arial, Helvetica, Georgia, Sans-Serif; font-size: 12px; padding: 2px; } input#s, input#author, input#email, input#url, textarea#comment { padding: 3px; } input#author, input#email, input#url { margin: 0 5px 0 0; } code { color: #008099; } blockquote { display: block; margin: 25px 0; padding: 0 0 0 45px; clear: both; font-size: 14px; font-style: italic; background: url(images/quote.png) no-repeat; } blockquote { display: block; margin: 25px 0; padding: 0 0 0 45px; clear: both; font-size: 14px; font-style: italic; background: url(images/quote.png) no-repeat; font-family: Georgia, Times; } blockquote.pullquote, blockquote.pullquoteleft { font-size: 2em; line-height: 1em; font-style: italic; width: 200px; color: #a1a1a1; background-image: none; } blockquote.pullquote { margin: 0 0 0 30px; border-left: 5px solid #eee; padding: 10px 0 10px 30px; } blockquote.pullquoteleft { margin: 0 30px 0 0; border-right: 5px solid #eee; padding: 10px 30px 10px 0; text-align: right; } table { border-top: 1px solid #bbb; border-right: 1px solid #bbb; width: 100%; margin: 20px 0; } table td { padding: 4px; border-left: 1px solid #bbb; border-bottom: 1px solid #bbb; } table thead td { font-weight: bold; } .align_center { text-align: center; } .multi_col { -moz-column-width: 14em; -webkit-column-width: 14em; -moz-column-gap: 1em; -webkit-column-gap: 1em; } .space { height: 30px; } .list_inline li { display: inline; margin: 0 5px 0 0; list-style: none; padding: 0; } /* for horizontal-list */ .wp-caption-text { font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif; } .sticky { background: #f9f9f9; padding: 18px 20px; } .gallery-caption { color: #888; font-size: 12px; margin: 0 0 12px; } #header, #content, #footer, .widget { overflow: hidden; } /* ===================== framework ===================== */ .grid_0 { width: 980px; } .grid_02 { width: 490px; float: left; margin: 0; display: inline; } .grid_03 { width: 286px; float: left; margin: 0 15px; display: inline; } .grid_1 { width: 670px; float: left; margin: 0; display: inline; } .grid_12 { width: 290px; float: left; margin: 0 15px; display: inline; } .grid_2 { width: 310px; float: left; margin: 0; display: inline; } .grid_22 { width: 120px; float: left; margin: 0 10px; display: inline; } .full { width: 100%; } .half { width: 50%; } .first { margin-left: 0; /* the first left column */ } .last { margin-right: 0; /* the last right column */ } .in25 { padding: 25px; } .in30 { padding: 30px; } /* ===================== images ===================== */ img, img a { border: none; } .alignleft { float: left; margin: 0 15px 5px 0; display: inline; } .alignright { float: right; margin: 0 0 5px 15px; display: inline; } .aligncenter { display: block; margin: 0 auto; clear: both; } .wp-caption, .imgthumb, .entry img { border: 1px solid #ccc; text-align: center; background-color: #f9f9f9; padding: 4px; -moz-border-radius: 4px; -khtml-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; } .wp-caption img { margin: 0; padding: 0; border: 0 none; } .wp-caption-dd { font-size: 11px; line-height: 17px; padding: 0 4px 5px; margin: 0; } /* ===================== header ===================== */ #header { margin: 0; height: 128px; background: url(images/bg-header.jpg) no-repeat bottom center; } #logo { margin: 0; padding-top: 20px; text-align: center; } #tagline { margin: 0; padding: 0; text-align: center; font-size: 90%; font-style: italic; color: #999; } /* ===================== top-nav and dropmenu ===================== */ #top-nav { background: url(images/top-nav.jpg) no-repeat; height: 50px; position: relative; z-index: 600; } #dropmenu { margin: 0; padding: 0 0 0 30px; list-style-type: none; } #dropmenu a { display: block; padding: 15px 15px; text-decoration: none; color: #aaa; font-size: 12px; text-transform: uppercase; } #dropmenu ul { position: absolute; display: none; top: 40px; left: 0; padding: 9px; } #dropmenu li { float: left; position: relative; list-style: none; } #dropmenu ul ul { top: auto; } #dropmenu li ul { top: 40px; left: -10px; margin: 0; } #dropmenu li ul a { width: 120px; height: auto; float: left; } #dropmenu li ul ul { top: -10px; left: 140px; margin: 0; } #dropmenu li:hover ul ul, #dropmenu li:hover ul ul ul, #dropmenu li:hover ul ul ul ul { display: none; } #dropmenu li:hover ul, #dropmenu li li:hover ul, #dropmenu li li li:hover ul, #dropmenu li li li li:hover ul { display: block; } #dropmenu ul li, #dropmenu li.active .children li.active ul li { background: #f1f1f1; border-top: 1px solid #ddd; } #dropmenu ul li:hover { background: #fff url(images/bg-grad.png) repeat-x top left; } /* ===================== rss-popup ===================== */ .icon-popup { padding: 9px 0 10px 0; float: right; width: 32px; position: relative; } div.icon-popup em { background: #fff; border: 1px solid #555; padding: 5px; position: absolute; top: -50px; left: -0px; text-align: center; z-index: 2; display: none; color: #555; } #rss-icon { width: 32px; height: 32px; background: url(images/rss32.png) no-repeat 0 0; text-indent: -9999px; margin: 0 auto; display: block; } /* ===================== searchform ===================== */ #search { width: 240px; float: left; display: inline; padding-left: 40px; } #s { background: url(images/bg-search.png) no-repeat; border: none; width: 170px; height: 25px; color: #777; font-size: 90%; font-style: italic; display: inline; float: left; } #searchform { float: left; padding-top: 13px; padding-right: 0; } #searchform, #searchform div { position: relative; } #searchsubmit { background: url(images/search-btn.png) no-repeat; height: 25px; width: 30px; border: none; text-indent: -999%; display: inline; float: left; } form#searchform input#s { padding: 0 10px; width: 150px; } /* ===================== slider ===================== */ #sliderbox { padding: 30px; width: 920px; height: 300px; background: url(color-slider/gray/bg-slider.jpg) no-repeat top center; } /* ===================== intro ===================== */ #intro { padding: 25px 40px 15px; background: #ededed url(color-slider/gray/bg-intro.jpg) no-repeat bottom center; color: #888; font-family: 'Forum', Georgia, Times; } #intro a { color: #999; } #intro .big { text-align: center; font-size: 20px; } #intro .big-left { text-align: left; font-size: 20px; } #intro .small { text-align: left; font-size: 13px; } /* ===================== content ===================== */ #content { margin-top: 20px; } .post { margin-bottom: 30px; } .read_more a { color: #079eb8; } .entry { padding: 30px 0; } .entry a { color: #005F6F; text-decoration: underline; } .entry a:hover { color: #333; } .entry ul, .entry ol { padding: 9px 20px; } .meta_left { width: 80%; float: left; } .meta_right { width: 20%; float: right; text-align: right; font-style: italic; } .postmeta { font-size: 80%; border-bottom: 1px solid #ddd; margin: 0; padding: 0; background: #f9f9f9; color: #999; clear: both; } .postmeta a { text-decoration: none; color: #999; } /* ===================== sidebar ===================== */ #sidebar { color: #afafaf; background: url(images/bg-sidebar.jpg) repeat-y top left; } #sidebar a { color: #999; } #sidebar ul { padding: 0; margin: 0; list-style: none; } #sidebar ul li { border-bottom: 1px solid #eee; } #sidebar ul li a { line-height: 22px; } #sidebar ul li li { padding-left: 10px; border-bottom: 1px solid #eee; } #sidebar-left ul, #sidebar-right ul { padding-bottom: 10px; } #sidebar h4, #sidebar h4 a { border-bottom: 2px solid #ddd; margin: 10px 0 10px; color: #555; } #sidebar-bot { background: url(images/bg-sidebar-bottom.jpg) no-repeat top left; height: 190px; width: 310px; float: right; } /* ===================== ads ===================== */ #ads { background: #f1f1f1; padding-bottom: 10px; margin-bottom: 20px; } #ads ul { list-style: none; padding: 0; overflow: hidden; width: 100%; border: none; } #ads ul li { border: none; display: inline; } #ads ul li a img { margin: 5px 0; } /* ===================== bottom-menu ===================== */ #bottom-menu { background: #ebeceb url(images/bg-bottom-menu-top.jpg) no-repeat top center; padding: 20px 0 0 0; list-style-type: none; } #bottom-menu-bot { background: #ebeceb url(images/bg-bottom-menu-bot.jpg) no-repeat bottom center; height: 40px; } #bottom-menu ul { margin: 0; padding: 0 0 10px 0; list-style: none; } #bottom-menu ul li { border-bottom: 1px solid #ccc; } #bottom-menu ul li a { line-height: 22px; } #bottom-menu ul li li { padding-left: 10px; border-bottom: 1px solid #ccc; } #bottom-menu h4 { border-bottom: 2px solid #ddd; margin-bottom: 10px; } /* ===================== footer ===================== */ #footer { background: #333; } #footer-left #networks { padding: 20px 30px; } #footer-right p { color: #ddd; text-align: right; padding: 20px 30px; font-size: 80%; } #footer-right a { color: #ddd; font-weight: 500; } /* ===================== pagenavi ===================== */ #pagenavi { clear: both; text-transform: uppercase; margin-bottom: 30px; } #pagenavi a { text-decoration: none; color: #999; padding: 3px 5px; margin: 2px; } #pagenavi span { text-decoration: none; border: 1px solid #eee; background: #eee; color: #999; padding: 3px 5px; margin: 2px; } #pagenavi a:hover, #pagenavi span.current { color: #555; } #pagenavi span.current { font-weight: bold; } /* ===================== calendar ===================== */ table#wp-calendar { width: 100%; text-transform: none; padding-top: 0; margin-top: 0; } table#wp-calendar caption { padding: 0 10px 10px; } table#wp-calendar th { padding: 0; text-align: center; background: #EEEEEE; } table#wp-calendar td { padding: 0; text-align: center; } /* ===================== comments ===================== */ .comments {margin: 10px 0;} .comments h3 {margin:50px 0 30px 0;font-size:24px;} ol.commentlist { list-style:none; margin:0 0 1em; padding:0; text-indent:0; } ol.commentlist li { } ol.commentlist li.alt { } ol.commentlist li.bypostauthor {} ol.commentlist li.byuser {} ol.commentlist li.comment-author-admin {} ol.commentlist li.comment { border: 1px solid #ddd; padding:1em; margin-bottom: 10px; -moz-border-radius: 5px; -khtml-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; } ol.commentlist li div.comment-author {} ol.commentlist li div.vcard { font-size:20px;} ol.commentlist li div.vcard cite.fn { font-style:normal; } ol.commentlist li div.vcard cite.fn a.url {} ol.commentlist li div.vcard img.avatar { border:5px solid #ccc; float:left; margin:0 1em 1em 0; } ol.commentlist li div.vcard img.avatar-32 {} ol.commentlist li div.vcard img.photo {} ol.commentlist li div.vcard span.says {} ol.commentlist li div.commentmetadata {} ol.commentlist li div.comment-meta { font-size:9px; margin-bottom: 10px;} ol.commentlist li div.comment-meta a { color: #aaa; } ol.commentlist li p { margin: 0; } ol.commentlist li ul { list-style:square; margin:0 0 1em 2em; } ol.commentlist li div.reply { font-size:11px; } ol.commentlist li div.reply a { font-weight:bold; } ol.commentlist li ul.children { list-style:none; margin:1em 0 0; text-indent:0; } ol.commentlist li ul.children li {} ol.commentlist li ul.children li.alt {} ol.commentlist li ul.children li.bypostauthor {} ol.commentlist li ul.children li.byuser {} ol.commentlist li ul.children li.comment {} ol.commentlist li ul.children li.comment-author-admin {} ol.commentlist li ul.children li.depth-2 { margin:0 0 .25em .25em; } ol.commentlist li ul.children li.depth-3 { margin:0 0 .25em .25em; } ol.commentlist li ul.children li.depth-4 { margin:0 0 .25em .25em; } ol.commentlist li ul.children li.depth-5 {} ol.commentlist li ul.children li.odd {} ol.commentlist li.even { background:#fff; } ol.commentlist li.odd { background:#f6f6f6; } ol.commentlist li.parent { } ol.commentlist li.pingback { border-bottom:1px dotted #676767; padding:1em; } ol.commentlist li.thread-alt { } ol.commentlist li.thread-even {} ol.commentlist li.thread-odd {} /* ===================== comment form ===================== */ #respond { background: #f1f1f1; border: 1px solid #ddd; -moz-border-radius: 3px; border-radius: 3px; margin: 0 auto 1.625em; padding: 10px; position: relative; width: 68.9%; } #respond input[type="text"], #respond textarea { background: #fff; border: 4px solid #eee; -moz-border-radius: 5px; border-radius: 5px; -webkit-box-shadow: inset 0 1px 3px rgba(204,204,204,0.95); -moz-box-shadow: inset 0 1px 3px rgba(204,204,204,0.95); box-shadow: inset 0 1px 3px rgba(204,204,204,0.95); position: relative; padding: 10px; text-indent: 80px; } #respond .comment-form-author, #respond .comment-form-email, #respond .comment-form-url, #respond .comment-form-comment { position: relative; } #respond .comment-form-author label, #respond .comment-form-email label, #respond .comment-form-url label, #respond .comment-form-comment label { background: #eee; color: #555; display: inline-block; left: 4px; min-width: 60px; padding: 4px 10px; position: relative; top: 40px; z-index: 1; } #respond input[type="text"]:focus, #respond textarea:focus { text-indent: 0; z-index: 1; } #respond textarea { resize: vertical; width: 95%; } #respond .comment-form-author .required, #respond .comment-form-email .required { color: #bd3500; font-size: 22px; font-weight: bold; left: 75%; position: absolute; top: 45px; z-index: 1; } #respond .comment-notes, #respond .logged-in-as { font-size: 13px; } #respond p { margin: 10px 0; } #respond .form-submit { float: right; margin: -20px 0 10px; } #respond input#submit { background: #454545; border: none; -moz-border-radius: 3px; border-radius: 3px; -webkit-box-shadow: 0px 1px 2px rgba(0,0,0,0.3); -moz-box-shadow: 0px 1px 2px rgba(0,0,0,0.3); box-shadow: 0px 1px 2px rgba(0,0,0,0.3); color: #eee; cursor: pointer; margin: 20px 0; padding: 5px 42px 5px 22px; position: relative; left: 30px; } #respond input#submit:active { background: #1982d1; color: #bfddf3; } #respond #cancel-comment-reply-link { color: #666; margin-left: 10px; text-decoration: none; } #respond .logged-in-as a:hover, #respond #cancel-comment-reply-link:hover { text-decoration: underline; } .commentlist #respond { margin: 1.625em 0 0; width: auto; } #reply-title { color: #373737; font-size: 20px; } #cancel-comment-reply-link { color: #888; display: block; position: absolute; right: 1.625em; text-decoration: none; text-transform: uppercase; top: 1.1em; } #cancel-comment-reply-link:focus, #cancel-comment-reply-link:active, #cancel-comment-reply-link:hover { color: #ff4b33; } #respond label { line-height: 2.2em; } #respond input[type=text] { display: block; height: 24px; width: 75%; } #respond p { font-size: 12px; } p.comment-form-comment { margin: 0; } .form-allowed-tags { display: none; } /* ===================== forms ===================== */ .screenReader { left: -9999px; position: absolute; top: -9999px; } .thanks { padding:10px; } ol.forms { float: left; list-style: none; margin: 0; width: 90%; } ol.forms li { clear: both; float: left; margin-bottom: 18px; position: relative; width: 90%; } ol.forms label { cursor: pointer; display: block; float: left; font-weight: bold; padding-right: 20px; width: 100px; } ol.forms input, ol.forms textarea { border: 1px solid #ccc; border-radius: 3px; font: inherit; -moz-border-radius: 3px; padding: 2px; -webkit-border-radius: 3px; width: 214px; } ol.forms textarea { height: 300px; width: 334px; } ol.forms input:focus, ol.forms textarea:focus { background-color: #fff; border-color: #aaa; } .error { color: red; } ol.forms li { list-style: none;} ol.forms li .error { font-size: 12px; margin-left: 20px; } ol.forms li.textarea .error { display: block; position: absolute; right: 0; top: 0; width: 100px; } ol.forms li.screenReader { margin-bottom: 0; } ol.forms li.inline { float: left; width: 460px; } ol.forms li.inline input { width: auto; } ol.forms li.inline label { display: inline; float: none; width: auto; } /* ===================== css3/buttons ===================== */ .rounded { -webkit-border-radius: 8px; -moz-border-radius: 8px; border-radius: 8px; } .button { display: inline-block; outline: none; cursor: pointer; text-align: center; text-decoration: none; padding: 5px 18px 4px; -webkit-border-radius: 15px; -moz-border-radius: 15px; border-radius: 15px; margin: 5px 10px 5px 0; text-shadow: 0 1px 1px #555; font-variant: normal; color: #f2f2f2; } .button:hover { text-decoration: none; color: #f2f2f2; } .button:active { position: relative; top: 1px; } a.button { color: #f2f2f2; text-decoration: none; } a.button:hover { color: #f2f2f2; text-decoration: none; } .black { border: none; background: #383838; background: -webkit-gradient(linear, left top, left bottom, from(#686868), to(#333333)); background: -moz-linear-gradient(top, #686868, #333333); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#686868', endColorstr='#333333'); } .black:hover { background: #383838; background: -webkit-gradient(linear, left top, left bottom, from(#333333), to(#686868)); background: -moz-linear-gradient(top, #333333, #686868); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#333333', endColorstr='#686868'); } .blue { border: none; background: #012b3b; background: -webkit-gradient(linear, left top, left bottom, from(#0097d0), to(#012b3b)); background: -moz-linear-gradient(top, #0097d0, #012b3b); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#686868', endColorstr='#333333'); } .blue:hover { background: #012b3b; background: -webkit-gradient(linear, left top, left bottom, from(#012b3b), to(#0097d0)); background: -moz-linear-gradient(top, #012b3b, #0097d0); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#333333', endColorstr='#686868'); } .pink { border: none; background: #570033; background: -webkit-gradient(linear, left top, left bottom, from(#ee038c), to(#570033)); background: -moz-linear-gradient(top, #ee038c, #570033); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#686868', endColorstr='#333333'); } .pink:hover { background: #570033; background: -webkit-gradient(linear, left top, left bottom, from(#570033), to(#ee038c)); background: -moz-linear-gradient(top, #570033, #ee038c); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#333333', endColorstr='#686868'); } .green { border: none; background: #2f4214; background: -webkit-gradient(linear, left top, left bottom, from(#90c841), to(#2f4214)); background: -moz-linear-gradient(top, #90c841, #2f4214); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#686868', endColorstr='#333333'); } .green:hover { background: #2f4214; background: -webkit-gradient(linear, left top, left bottom, from(#2f4214), to(#90c841)); background: -moz-linear-gradient(top, #2f4214, #90c841); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#333333', endColorstr='#686868'); } .orange { border: none; background: #5b360a; background: -webkit-gradient(linear, left top, left bottom, from(#f39322), to(#5b360a)); background: -moz-linear-gradient(top, #f39322, #5b360a); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#686868', endColorstr='#333333'); } .orange:hover { background: #5b360a; background: -webkit-gradient(linear, left top, left bottom, from(#5b360a), to(#f39322)); background: -moz-linear-gradient(top, #5b360a, #f39322); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#333333', endColorstr='#686868'); } .purple { border: none; background: #2f0d2e; background: -webkit-gradient(linear, left top, left bottom, from(#8e2489), to(#2f0d2e)); background: -moz-linear-gradient(top, #8e2489, #2f0d2e); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#686868', endColorstr='#333333'); } .purple:hover { background: #2f0d2e; background: -webkit-gradient(linear, left top, left bottom, from(#2f0d2e), to(#8e2489)); background: -moz-linear-gradient(top, #2f0d2e, #8e2489); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#333333', endColorstr='#686868'); } /* ===================== css for shortcodes ===================== */ div.divider { clear: both; display: block; height: 1px; padding-top: 20px; margin-bottom: 20px; border-bottom: 1px dashed #aaa; } div.divider.no_border { border: none; } .dropcap { font-size: 270%; line-height: 100%; font-weight: bold; float: left; padding-top: 0; padding-right: 5px; } .highlight { background: #ffff66; } .checklist ul { margin-left: 0; list-style:none!important; } .checklist ul li { padding: 0 0 0 30px; background-image: url(images/check.png); background-position: left center; background-repeat: no-repeat; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true', sizingMethod='crop', src='images/check.png'); } .left { float: left; } .right { float: right; } .multi_col { -moz-column-width: 14em; -webkit-column-width: 14em; -moz-column-gap: 1em; -webkit-column-gap: 1em; } .list_inline li { display: inline; margin: 0 5px 0 0; list-style: none; padding: 0; } .box_yellow { clear: both; padding: 20px; margin: 20px 0; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; background: #fff58f; border: 1px solid #efdb00; } .box_green { clear: both; padding: 20px; margin: 20px 0; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; background: #aaff8f; border: 1px solid #5fdf37; } .box_blue { clear: both; padding: 20px; margin: 20px 0; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; background: #9fcfff; border: 1px solid #4593df; } /* ===================== shortcodes/framework fluid width ===================== */ .one_half { width: 48%; } .one_third { width: 30.66%; } .two_third { width: 65.33%; } .one_fourth { width: 22%; } .three_fourth { width: 74%; } .one_half, .one_third, .two_third, .three_fourth, .one_fourth { position: relative; float: left; display: inline; overflow: hidden; margin-right: 4%; } .first { margin-left: 0; /* the first left column */ } .last { margin-right: 0; clear: right; /* the last right column */ }