Help - Search - Members - Calendar
Full Version: Small help with css
HTMLHelp Forums > Web Authoring > Cascading Style Sheets
ofi
Hya again smile.gif

I am still working on my test site http://www.almennt.com/prufusida/test2/index.php
and i integrated plogger gallery into it http://www.almennt.com/prufusida/test2/myndir.php

Can someone help me with css in this, as you see myndir.php the header image moves to center and font color are not same, i am using one css file with the page and another with plogger gallery, if someone can spot the problem in those two css.

the main css i am using on index
CODE
body {
    font-size: 11px;
    color:black;
    font-family: Verdana, Arial, SunSans-Regular, Sans-Serif;
    background: #f4f4f4 url(images/bg.gif) center repeat-y;
    padding-left: 50%;
    margin:0px;
}


#container {
    width: 800px;
    margin-left: -400px;
}


#top {
    background-color:#EEE;
    width:auto;
    height:20px;
}


h1 {
    font: 17px verdana;
    color: #B0B0B0;
    margin: 5px;
}

h2 {
    font-size:11px;
    color:#787878;
    margin:9px;
}


.navmenu
{
    background-color:#F3F3F3;
    padding: 3px;
    font-weight:bold;
    text-align:center;
    width: 15%;
    margin-top:1px;
    margin-right:2px;
    float:left;
}




a {
    text-decoration: none;
    padding: 0;
    margin: 0;
    color: #005784;
}

a:hover {
    color:    #cb0707;
    text-decoration: underline;
}


.outsidebox {
    width: auto;
    padding: 0px 6px 0px 5px;
    clear: both;
}


.insidebox {
    width: auto;
    line-height: 20px;
    color: #555A60;
    font-size:12px;
    padding: 15px 6px 0px 6px;
    background:#f8f8f8;
    border:1px solid #DDDDDD;
    text-align: justify;
    height: auto;
}


.title
{
    color:#579;
    font-size: 13px;
    font-weight: bold;
}

.date
{
    font-size: 9px;
    margin:4px;
}

.archive
{
    width:100px;
    line-height: 20px;
    font-size:10px;
    background-color: #f4f1f1;
    border:1px solid #DDDDDD;
    float:right;
    text-align:center;
}


.footer {
    width: auto;
    line-height: 20px;
    color: #555A60;
    font-size:10px;
    background: #f1f1f1;
    border:1px solid #DDDDDD;
    text-align: center;
    height: auto;
}

.textinput
{
    font-family: Tahoma;
    color: #555A60;
    font-size:11px;
    border:1px solid #DDDDDD;
}

.buttonSubmit
{
    font-size:11px;
}


and here is plogger theme css
CODE
* {
    margin: 0;
    padding: 0;
}
body {
    margin: 0;
    padding: 0 0 25px 0;
    background: #f4f5eb;
    color: #404040;
    font: 62.5% "Lucida Grande", Verdana, Arial, sans-serif; /* Resets 1em to 10px */
    text-align: center;
}
img {
    border: 0;
}
a:link, a:visited {
    color: #7f807b;
    text-decoration: none;
}
a:hover {
    color: #404040;
}
#wrapper {
    margin: 25px auto 0;
    width: 740px;
    border: 1px solid #b3b6b0;
    background: #fff;
    position: relative;
}
b.cn {position: absolute; height: 3px; width: 3px; margin: 0; padding: 0; line-height: 1px; font-size: 1px;  }
b.tl {top: -1px; left: -1px; background: url(images/bg-tl.gif) no-repeat; }
b.tr {top: -1px; right: -1px; background: url(images/bg-tr.gif) no-repeat; }
b.bl {bottom: -1px; left: -1px; background: url(images/bg-bl.gif) no-repeat; }
b.br {bottom: -1px; right: -1px; background: url(images/bg-br.gif) no-repeat; }

#header {
    text-align: left;
    padding: 20px 0 15px;
}
#header p {
    float: right;
    margin: 6px 25px 0 0;
    display: inline;
    text-align: right;
    font-size: 1.2em;
    /* allows you to add a few words to the top right of the gallery header */
}
#gallery-name {
    margin: 0;
    padding: 0 0 0 25px;
    color: #555;
    font-size: 2em;
}
#gallery-name a {
    color: #555;
}
#main-container {
}
#breadcrumbs {
    clear: both;
    margin: 0;
    font-size: 1.1em;
    min-height: 20px;
    background: url(images/lg-bg.gif) repeat-x bottom;
    border-top: 1px solid #b3b6b0;
    border-bottom: 1px solid #b3b6b0;
}
#slideshow {
    float: right;
    display: inline;
    padding: 4px 25px 0 0;
}
#breadcrumb_links {
    float: left;
    display: inline;
    padding: 4px 0 0 25px;
}
#thumbnail-container, #big-picture-container {
    margin: 10px 0 0;
    padding: 0;
}
#collections {
    text-align: left;
    margin: 0 0 0 25px;
    border-top: 1px solid #b3b6b0;
}
.collection {
    border-bottom: 1px solid #b3b6b0;
    padding: 10px 0;
    float: left;
    display: inline;
    width: 100%;
}
.collection img {
    border: 1px solid #dfded6;
    float: left;
    margin-right: 15px;
    padding: 3px;
    display: inline;
    background: #fff;
}
.collection img:hover {
    background: #eaeae0;
    border: 1px solid #b3b6b0;
}
.collection p {
    margin: 4px 0 0 0;
    line-height: 1.5em;
}
h2 {
    margin: 4px 0;
    padding: 0;
    color: #7f807b;
    font-size: 1.4em;
}

/* Begin Large Picture Page Section */
#picture-caption {
    /* ideally, no padding and width is equal THUMB_LARGE image */
    margin: 6px auto 6px;
    padding: 0 80px;
    font-size: 1.4em;
    text-align: center;
}
.date {
    padding: 0 0 2px 0;
    text-align: center;
    font-size: 1.1em;
    letter-spacing: 1px;
    color: #696a66;
}
#prev-link-container {
    width: 50%;
    text-align: left;
}
#next-link-container {
    width: 50%;
    text-align: right;
}
#nav-link-img-prev, #nav-link-img-next {
    padding: 6px 15px;
}
#nav-link-img-prev {
    float: left;
    display: inline;
}
#nav-link-img-next {
    float: right;
    display: inline;
}
#nav-link-img-prev a {
    border: 1px solid #fff;
    padding: 5px 15px;
}
#nav-link-img-next a {
    border: 1px solid #fff;
    padding: 5px 15px;
}
#nav-link-img-prev a:hover, #nav-link-img-next a:hover {
    border: 1px solid #b3b6b0;
    background: url(images/lg-bg.gif) repeat-x bottom;
}
#picture-holder {
    clear: both;
    margin: 10px 0 0 0;
}
#picture-holder a img {
    margin: 4px;
    padding: 3px;
    background: #fff;
    border: 1px solid #b3b6b0;
}
#picture-holder a:hover {
    white-space: normal;
}
#picture-description {
    margin: 6px auto 6px;
    padding: 0 80px;
    /* ideally, no padding, but width equal to THUMB_LARGE image */
    text-align: center;
    font-size: 1.1em;
}
#exif_toggle {
    margin: 0 0 20px 0;
    padding: 0;
}
#exif-toggle-container {
}
#exif_table {
}
#exif_data {
    margin: 0 auto 0;
    text-align: left;
}
#exif_data td {
    padding: 0 20px;
}
#comment-section {
    margin: 10px 25px 10px 25px;
    clear: both;
    text-align: left;
}
.comment-heading {
    margin: 12px 0 0 0;
}
#thumb-nav {
    list-style-type: none;
    margin: 25px;
}
#thumb-nav li {
    float: left;
    margin: 0 10px 0 0;
}
#thumb-nav li img {
    border: 1px solid #dfded6;
    padding: 3px;
    display: inline;
    background: #fff;
}
#thumb-nav li img:hover {
    background: #eaeae0;
    border: 1px solid #b3b6b0;
}
/* test the following stuff */
#comment-section form p {
    margin: 6px 0;
}
.comment, .comment_alt {
    border-top: 1px solid #dfded6;
    margin: 0;
    padding: 15px;
    list-style: none inside;
}
.comment_alt {
    background: #f4f5eb;
}
.comments p {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.3em;
    padding: 0 0 15px;
}
.comments cite {
    margin-top: 8px;
    padding: 5px 5px 5px 23px;
    color: #000;
    background: url(images/com-bubble.gif) no-repeat 0 5px;
    font-size: 1.0em;
    text-transform: uppercase;
    letter-spacing: 1px;
    height: 28px;
}
.comments-closed {
    color: #996;
    text-align: center;
}
#comment-section p.inputbuttonp {
    padding: 0 0 0 3px;
    background: url(images/btn-lt-bg.png) no-repeat left;
    /* this is the little left end cap of the button */
}
/* End Large Picture Page Section */

#no-pictures-msg {
    margin: 0 0 200px;
    padding: 80px 0;
    font-size: 1.4em;
    text-align: center;
}

#rss-image {
    margin: 0;
    padding: 0;
    display: inline;
}

.errors {
    margin: 0 0 15px 0;
    padding: 8px 8px 8px 30px;
    border: 1px solid #e3071f;
    font-size: 1.1em;
    color: #000;
    background: #f5a7ab url(images/null.gif) no-repeat 5px 5px;
}
.meta-header {
    margin: 0;
    padding: 0;
    color: #aaa;
    font-size: 90%;
}
.page_link {
    padding-left: 1px;
    padding-right: 1px;
    text-decoration: none;
}
.print {
}
div.large-thumb-toolbar {
    padding: 15px 0;
    text-align: center;
}
div.large-thumb-toolbar a {
    padding: 0 4px;
}
.photos-large {
    margin: 0 0 20px 0;
}

ul.slides {
    margin: 0 0 0 10px;
    padding: 0;
}
ul.slides li {
    /* width is calculated by PHP in the HTML, style is applied inline */
    float: left;
    margin: 5px;
    padding: 10px;
    display: inline;
    text-align: center;
}
ul.slides li img {
    border: 1px solid #dfded6;
    background: #fff;
    padding: 3px;
}
ul.slides li a {
    display: block; /* display:block required to make anchor tag's border surround img in Firefox */
}
ul.slides li img:hover {
    border: 1px solid #b3b6b0;
    background: #eaeae0;
}
.checkbox {
    clear: both;
    margin: 4px auto 0;
    padding: 0;
}
.thumbnail p {
    padding: 0 6px;
    margin: 4px 0 0 0;
    line-height: 1.2em;
    font-weight: bold;
    height: 2.5em;
    overflow: hidden;
    /* width is equal to the width of the thumbnail image, set inline in album.php */
}

/* Begin Footer Section */
#pagination {
    clear: both;
    padding: 10px 25px;
    font-size: 1.2em;
}
input {
    display: inline;
    height: 17px;
}
option {
    padding: 0 4px;
}
#download-selected {
    clear: both;
    float: left;
    display: inline;
    margin: 0 0 20px 25px;
}
#download-selected input {
    text-align: left;
    width: 135px;
    background: url(images/btn-bg-135.png) no-repeat left;
}
/*
#download-selected div, #download-selected span {
    text-align: left;
    width: 140px;
    /* this is the little left end cap of the button */
/*
    padding: 0 0 0 3px;
    background: url(images/btn-lt-bg.png) no-repeat left;
}
*/
#sort-control {
    margin: 0 25px 20px 0;
    float: right;
    display: inline;
}
#sort-control span {
    float: left;
    margin-left: 8px;
    display: inline;
    font-size: 1.2em;
}
#change_sortby {
    margin-left: 5px;
}
#footer {
    clear: both;
    padding: 0 25px;
    border-top: 1px solid #b3b6b0;
}
#search-container {
    float: right;
    white-space: nowrap;
    margin: 20px 0 0;
}
#search-container input {
    float: left;
}
#navigation-container, #rss-tag-container {
    float: left;
    white-space: nowrap;
    margin: 20px 0 0;
}
input.submit {
    font: 1.1em/1.8em "Lucida Grande", Verdana, Arial, sans-serif; /* Resets 1em to 10px */
    height: 21px;
    border: none;
    margin: 0;
    padding: 0 10px 2px;
    background: #fff url(images/btn-bg.png) no-repeat right;
    cursor: pointer;
}
#link-back {
    clear: both;
    padding: 8px 0 2px;
    color: #7f807b;
    display: block;
    font-size: 90%;
    text-align: center;
}
.credit {
    padding: 0 0 14px;
    color: #7f807b;
    font-size: 90%;
    text-align: center;
}
.clearfix:after {
    clear: both;
    display: block;
    content: ".";
    height: 0;
    visibility: hidden;
}

.clearfix {
    display: inline-block;
}

/* Hides from IE-mac \*/
* html .clearfix {
    height: 1%;
}
/* End hide from IE-mac */
pandy
QUOTE(ofi @ Aug 8 2008, 05:29 PM) *

as you see myndir.php the header image moves to center


Because you have...

body { ...
text-align: center;
...
}

You have to change the text alignment for H2 to left. Wonder if it isn't neater to do it the other way around, to leave the alignment for body alone (=left) and center just the parts you want centered though.


It's cruel to show me those pictures! I want to go so bad! IPB Image
ofi
QUOTE(pandy @ Aug 8 2008, 11:15 AM) *

I want to go so bad! IPB Image


Maybe you will go there someday, btw, thx for helping
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.