Author Topic: CSS Gurus inside please.  (Read 2642 times)

  • Offline Vini

  • Posts: 736
  • Hero Member
CSS Gurus inside please.
on: March 27, 2006, 16:34:32 PM
Code: [Select]
/*
Theme Name: Fundamental
Theme URI: http://www.kaushalsheth.com/
Design Name: Fundamental
Description: Fundamental theme ported to Wordpress.
Version: 1.0
Author: Kaushal Sheth
Author URI: http://www.kaushalsheth.com
*/
/* Main Credit*/

/* Fundamental CSS by Martin Wulffeld */

body {
        margin: 0;
        padding: 0;
        background-color: #FFF;
        font-size: 14px;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        background: url(images/bgsidebar.gif) repeat-y;
}
       
h1, h2, h3, h4, h5, h6 {
        margin: 5px 0;
        font-family: Trebuchet MS, Verdana, Arial, Helvetica, sans-serif;
}

h1 {
        font-size: 21px;
}

h2 {
        font-size: 18px;
}

h3 {
        font-size: 14px;
}

h4 {
        font-size: 12px;
}

h5 {
        font-size: 11px;
}

h6 {
        font-size: 9px;
}

span,
p,
code,
pre,
li,
th,
td,
blockquote {
        font-size: 11px;
}

form, div {
        padding: 0;
        margin: 0;
}

p {
        margin: 0 0 1em 0;
        padding: 0;
}

img {
        margin: 0;
        padding: 0;
        border: none;
}

#page {
        float: left;
        margin: 0;
        padding: 0 5px 0 7px;
        text-align: left;
        background-color: #FFF;
}

#header {
        margin: 0;
        padding: 0;
        background-color: #464646;
        border-bottom: 10px solid #4CC4EE;
        border-bottom: 7px solid #EEE;
        width: 510px;
}

#footer {
        margin: 0;
        padding: 0;
        height: 2em;
        background-color: #464646;
        border-top: 7px solid #00BBEE;
        width: 510px;
        color: #ffffff;
}

#main {
        width: 490px;
        border-bottom: none;
        padding: 0;
        margin: 15px 10px 5px 10px;
}

#sidebar {
        height: 1px; /* Fixes IE bug. */
        margin: 0 0 0 520px;
        padding: 15px 14px 15px 24px;
        color: #FFF;
}

#header h1#sitename {
        margin: 0;
}
     
#header h1#sitename a,
#header h1#sitename a:hover {
        display: block;
        color: #FFF;
        padding: 30px 10px 4px 10px;
        font-size: 1.2em;
        border: none;
        text-align: right;
}

#header h4#subtitle {
        color: #FFF;
        padding: 4px 10px 6px 10px;
        background-color: #00BBEE;
        margin: 0;
        text-align: right;
}

#page a {
        color: #00BBEE;
        text-decoration: none;
        border-bottom: 1px solid #00BBEE;
}
       
#page a:hover {
        color: #FFF;
        background-color: #00BBEE;
        border-bottom: 1px solid #00BBEE;
}

#sidebar a {
        color: #AAF100;
        text-decoration: none;
        border-bottom: 1px solid #AAF100;
}
       
#sidebar a:hover {
        color: #FFF;
        background-color: #AAD100;
        border-bottom: 1px solid #AAD100;
}

#sidebar p {
        margin: 0 0 5px 0;
}

#search #sform {
        padding: 5px 3px;
}
 
/* Apparently search borks if font-size is specified here. */
#search #q {
}

.post {
        margin: 0 0 5px 0px;
        padding-bottom: 10px;
}

.post h2.articletitle {
        text-align: right;
}

.post table {
        margin: 5px 0;
        padding: 0;
}

.post thead td {
        background-color: #555;
        color: #FFF;
        font-size: 0.8em;
        padding: 1px 3px;
        margin: 0;
}

.post tbody td {
        background-color: #DDD;
        color: #222;
        font-size: 0.8em;
        padding: 1px 3px;
        margin: 0;
}

.post p {
        line-height: 1.6em;
}
       
#page .post span.typo_date {
        font-size: 1em;
        text-transform: uppercase;
        text-align: right;
}

.post p.meta {
        text-align: right;
        color: #666;
        font-size: 0.6em;
        text-transform: uppercase;
}

.post p.author {
        display: block;
        padding: 2px 0 0 0;
        font-size: 0.6em;
        margin: 0;
        color: #999;
        text-align: right;
        border-top: 1px dashed #A2DFFC;
        text-transform: uppercase;
}

.post ul.postmetadata {
        text-align: right;
        margin: 0 0 10px 0;
        padding: 0;
        list-style-type: none;
        font-size: 0.7em;
}

.post ul.postmetadata li {
        text-transform: uppercase;
        display: inline;
        font-size: 0.9em;
}

.post table {
        margin: 5px 0;
        padding: 0;
}

.post thead td,
.post th {
        background-color: #FF6600;
        color: #FFF;
        border: 1px solid #EE5500;
        padding: 1px 3px;
        margin: 0;
}

.post tbody td,
.post td {
        background-color: #EEE;
        color: #222;
        border: 1px solid #DDD;
        padding: 1px 3px;
        margin: 0;
}

blockquote {
        font-style: italic;
        border-top: 2px solid #00BBEE; border-bottom: 2px solid #00BBEE;

}

code {
        display: block;
        background-color: #F4F4F4;
        border: 1px solid #E4E4E4;
        margin: 3px;
        padding: 5px;
}

ol.comment-list {
        list-style-type: none;
        margin: 0 0 30px 0;
        padding: 0;
}

ol.comment-list li {
        border-bottom: 1px dashed #00BBEE;
        padding:  0 0 5px 0;
        margin: 0 0 10px 0;
        color: #222;
}

ol.comment-list li h4.commentauthor {
        margin: 0 0 8px 0;
        padding: 2px 4px;
        background-color: #00BBEE;
        color: #FFF;
}

#page ol.comment-list li h4.commentauthor a {
        color: #FFF;
        text-decoration: none;
        border-bottom: 1px solid #FFF;
}

#page ol.comment-list li h4.commentauthor a:hover {
        color: #00BBEE;
        background-color: #FFF;
        text-decoration: none;
        border-bottom: 1px solid #FFF;
}

ol.comment-list li div.commentbody {
        padding: 0 4px 4px 4px;
}

h4.blueblk {
        padding: 5px 0;
        margin: 10px 0;
        border-bottom: 1px dashed #DDD;
        color: #AAA;
}

table.comment {
        padding: 2px 0px;
}

table.comment td {
        vertical-align: top;
        padding: 2px;
}

table.comment td.meta {
        padding: 3px 0;
}

table.comment td#comments-buttons {
        text-align: right;
}

table.comment p {
        margin: 0;
}

table.comment input#comment_author,
table.comment input#comment_url,
table.comment input#comment_email,
table.comment textarea#comment_body {
        width: 485px;
        background-color: #F4F4F4;
        color: #555;
        border: 1px dashed #DDD;
        padding: 2px;
}

input#form-submit-button {
        background-color: #86868A;
        color: #FFF;
        border: none;
        padding: 2px;
}

input#form-submit-button:hover {
        background-color: #46464A;
        color: #FFF;
        border: none;
        padding: 2px;
}

table.comment textarea#comment_body {
        height: 140px;
}

.light-bg {
        background: #F727F7;
        padding: 2px;
}

#errors {
        color: red;
}

/* Sidebar */
#sidebar h3 {
        margin-top: 10px;
        font-size: 0.8em;
}

#sidebar ul {
        margin: 0;
        padding: 0 0 0 20px;
        list-style-type: square;
}
         
#sidebar ul li {
        margin: 0 0 2px 0;
        font: 0.8em Verdana, Helvetica, sans-serif;
}

#sidebar ul li em {
        font-size: 8px;
        font-style: normal;
}
         
#sidebar #flickr div img {
        border: 2px solid #FFF;
}
         
#sidebar #flickr div {
        width: 108px;
        margin-bottom: 5px;
}

#sidebar #flickr div.flickrsquare {
        display: inline;
        width: 82px;
}

#sidebar #flickr div a {
        border: none;
}

#sidebar #flickr div a:hover {
        border: none;
        color: #FFF;
        border-bottom: 1px solid #AAF100;
}

#sidebar div#pagemeta {
        margin-top: 10px;
}

#sidebar div#pagemeta h4 {
        margin-bottom: 0;
}

#sidebar div#pagemeta ul {
        list-style-type: none;
        margin: 3px 0 5px 0;
        padding: 0;
}

#sidebar div#pagemeta ul li {
        margin: 0;
        padding: 1px 0;
}

.post .admintools {
        float: left;
}

.admintools {
        float: right;
        background-color: #FFF;
        font-size: smaller;
        padding: 0 2px;
        margin: 0;
        color: #CCC;
}

.admintools:hover {
}


/* added comments*/
#commentform input {
width: 170px;
padding: 2px;
margin: 5px 5px 1px 0;
}

#commentform textarea {
width: 100%;
padding: 2px;
border: 1px solid #c2c2c2;
}

#commentform #submit {
margin: 0;
float: right;
}

/* Comments */
.alt {
margin: 0;
padding: 10px;
border: 1px solid #cecece;
}

.commentlist {
padding: 0;
text-align: justify;
}

.commentlist li {
margin: 15px 0 3px;
padding: 5px 10px 3px;
list-style: none;
}

.commentlist p {
margin: 10px 5px 10px 0;
}

#commentform p {
margin: 5px 0;
}

.nocomments {
text-align: center;
margin: 0;
padding: 0;
}

.commentmetadata {
margin: 0;
display: block;
}

.commentlist li, #commentform input, #commentform textarea {
font: 0.9em Verdana, Arial, Sans-Serif;
}

.commentlist li {
font-weight: bold;
}

.commentlist cite, .commentlist cite a {
font-weight: bold;
font-style: normal;
font-size: 1.1em;
}

.commentlist p {
font-weight: normal;
line-height: 1.5em;
text-transform: none;
}

#commentform p {
font-family: Verdana, Arial, Sans-Serif;
}

.commentmetadata {
font-weight: normal;
}


im no guru, and im really struggling to make this lovely (ideal) wordpress theme mutli-resolution compatible.

i know its hard (most of the time) to make something, multibrowser/multires compatbile 100% through and through.

but this one should be simple.

at the minute its width is assigned by specific px so at anything under 1280x1024 and anything over 1280x1024 the site looks stupid.

so im trying to define the widths using %, but struggling big time.

anyone willing to have a bash? or aid me in my ways?



above is how i want it to look, with percentages it should be possible.

but this is how it looks at default (http://www.ibeats.co.uk)

  • Offline neXus

  • Posts: 8,749
  • Hero Member
Re:CSS Gurus inside please.
Reply #1 on: March 27, 2006, 16:43:29 PM
chatting on msn

Re:CSS Gurus inside please.
Reply #2 on: March 27, 2006, 16:45:22 PM
im not very good but surely main shouldnt be 490px and something like 90%

  • Offline Vini

  • Posts: 736
  • Hero Member
Re:CSS Gurus inside please.
Reply #3 on: March 27, 2006, 16:53:16 PM
Quote from: brummie
im not very good but surely main shouldnt be 490px and something like 90%


you would have thought so. i tried shifting page/main/header & footer to 90% and sidebar to 10% (common sense?)

but it all just went nipples up.

  • Offline neXus

  • Posts: 8,749
  • Hero Member
Re:CSS Gurus inside please.
Reply #4 on: March 27, 2006, 17:11:38 PM
Fixed it for him, well almost, just sorting header and footer

Re:CSS Gurus inside please.
Reply #5 on: March 27, 2006, 17:18:41 PM
Quote from: Vini
Quote from: brummie
im not very good but surely main shouldnt be 490px and something like 90%


you would have thought so. i tried shifting page/main/header & footer to 90% and sidebar to 10% (common sense?)

but it all just went nipples up.


Always the way though aint it  :P

    • Tekforums.net - It's new and improved!
  • Offline Clock'd 0Ne

  • Clockedtastic
  • Posts: 10,946
  • Administrator
  • Hero Member
Re:CSS Gurus inside please.
Reply #6 on: March 27, 2006, 18:26:51 PM
I would have given the sidebar a sensible static width and set the content area to 100%.

Sorted.

Ahh I see you dont want it filling the page, my bad  :whoops:

  • Offline Vini

  • Posts: 736
  • Hero Member
Re:CSS Gurus inside please.
Reply #7 on: March 27, 2006, 19:49:37 PM
some kind gent pointed me in the right direction, all snorted :)

just wondering now how to make the footer stick to the bottom of the page on all pages, as when theres not enough content, it looks pap

ala archives

  • Offline Sam

  • Posts: 3,943
  • Hero Member
CSS Gurus inside please.
Reply #8 on: March 27, 2006, 20:02:28 PM
You cant really. You could just stick a load of padding at the bottom of the content but then itll go on half a page longer than it should regardless.

  • Offline neXus

  • Posts: 8,749
  • Hero Member
CSS Gurus inside please.
Reply #9 on: March 27, 2006, 23:45:39 PM
Quote from: Sam
You cant really. You could just stick a load of padding at the bottom of the content but then itll go on half a page longer than it should regardless.


They wil add more float and anchor points in the next version of css, but it will take a while before thats the norm.

As sam says, its not doable at the moment, only thing you can do is keep it a distance apart if the content is vertically dynamic. If you had a fixed content window always, you could then have the footer fixed at the bottom. You would though then have limited content area or use css scrolling to display the text.

0 Members and 1 Guest are viewing this topic.