Div and table not working properly in Firefox - html

I am making a microsite via Dreamweaver using the fluid layout. In it, I had my header and banner inside a table under a div like so:
<div id="divHeader">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tbody>
<tr>
<td style="width: 30px;"></td>
<td style="vertical-align: middle; font-size: 1.3rem; font-weight: bold;">
<p><span>Move Toward </span> <span class="hdr">Zero Unplanned Downtime</span></p>
</td>
</tr>
<tr>
<td colspan="2" style="text-align: center;">
<img src="images/Mining_site_1192x181-12.png" alt=""/>
</td>
</tr>
</tbody>
</table>
</div>
In most browsers, this works well (including mobile browsers):
Unfortunately, in Firefox, it's shown this way:
When I used the built-in Inspect Elemet, this is what I see in Firefox:
For some reason, the table is displayed outside the DIV element. The table doesn't have a CSS class associated with it, and as for the DID, this is the CSS for its class divHeader:
#divHeader {
font-family: Arial;
background-color: #F89329;
text-transform: uppercase;
font-size: 1rem;
color: #fff;
line-height: 1rem;
border: none;
}
Is there an issue with tables within div in Firefox? If so, what's a good workaround?
Here is my CSS code:
#charset "utf-8";
/* Simple fluid media
Note: Fluid media requires that you remove the media's height and width attributes from the HTML
http://www.alistapart.com/articles/fluid-images/
*/
img, object, embed, video {
max-width: 100%;
}
a {
text-decoration: none;
}
a: hover {
color: #F59D51;
text-decoration: none;
}
/* IE 6 does not support max-width so default to width 100% */
.ie6 img {
width:100%;
}
/*
Dreamweaver Fluid Grid Properties
----------------------------------
dw-num-cols-mobile: 4;
dw-num-cols-tablet: 8;
dw-num-cols-desktop: 12;
dw-gutter-percentage: 25;
Inspiration from "Responsive Web Design" by Ethan Marcotte
http://www.alistapart.com/articles/responsive-web-design
and Golden Grid System by Joni Korpi
http://goldengridsystem.com/
*/
.fluid {
clear: both;
margin-left: 0;
width: 100%;
float: left;
display: block;
}
.fluidList {
list-style:none;
list-style-image:none;
margin:0;
padding:0;
}
/* Mobile Layout: 480px and below. */
.gridContainer {
margin-left: auto;
margin-right: auto;
width: 86.45%;
padding-left: 0.75%;
padding-right: 0.75%;
margin: auto;
clear: none;
float: none;
background-color: #fff;
}
.zeroMargin_mobile {
margin-left: 0;
}
.hide_mobile {
display: none;
}
#divEPMLogo {
background-color:#fff;
}
#divHeader {
font-family: Arial;
background-color: #F89329;
text-transform: uppercase;
font-size: 1rem;
color: #fff;
line-height: 1rem;
border: none;
}
#divHeader td.tdBanner {
background-image: url(../images/Mining_site_v2_Banner480.png);
background-position: bottom;
background-repeat: no-repeat;
background-size: contain;
height: 181px;
max-width: 480px;
margin: 0px;
}
#divSubheader {
font-family: Arial;
background-color: #fff;
text-transform: uppercase;
font-size: 1rem;
color: #4D4F44;
line-height: 1.3rem;
border: none;
}
div.divCnt {
width: 100%;
border: none;
}
#content header {
font-size: 1.1rem;
font-weight: bold;
color: #4D4F44;
font-family: Arial;
}
#content article {
font-size: 1rem;
color: #818183;
font-family: Arial;
}
#content hr {
width: 100%;
height: 3px;
color: #FFD022;
background-color: #FFD022;
border: none;
margin-top: 0px;
}
div.divBack {
width: 100%;
text-align: center;
}
div.divBack a {
color: #818183;
font-size: 0.9rem;
font-family: Arial;
text-decoration: none;
}
div.divBack a:hover {
color: #F89329;
text-decoration: none;
}
div.divRMBtn {
color: #fff;
background-color: #F89329;
text-align: center;
font-size: 0.9rem;
width: 6rem;
padding: 3px 0px;
font-family: Arial;
}
div.divRMBtn a {
color: #fff;
text-decoration: none;
}
div.divRMBtn a:hover {
color: #fff;
text-decoration: none;
}
div.divSecFt {
font-size: 0.8rem;
font-style: italic;
font-family: Arial;
padding: 10px 0px;
}
div.divSecFt a {
color: #4D4F44;
text-decoration: none;
}
div.divSecFt a:hover {
color: #F89329;
text-decoration: none;
}
div.container1 {
display:table-cell;
vertical-align: middle;
border: 1px solid black;
/*padding: 0px 0px 0px 30px;*/
position: relative;
left: 30px;
}
div.divForm {
font-family:Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 1rem;
text-align: left; width:50%;
height: 26rem;
min-width: 320px;
margin: 0 auto;
color:#4B4B4B;
border: none;
}
span.hdr {
color: #4D4F44;
text-wrap: none;
}
span.hdr2 {
color: #F59D51;
text-transform: uppercase;
font-size: 1.1rem;
font-weight: bold;
}
td.td-ico {
width: 73px;
max-width: 73px;
min-width: 73px;
text-align: center;
vertical-align: top;
padding-right: 5px;
}
.ulNltr{
color: #4D4F44;
font-family: Arial;
font-size: 0.9rem;
line-height: 1rem;
margin-left: 0px;
padding-left: 15px;
}
.ulNltr li {
padding-bottom: 10px;
list-style-image:url(../images/icons/bullet.png)
}
.ulNltr li.q1 {
list-style-image:url(../images/icons/question_icon.jpg)
}
.ulNltr li.c1 {
list-style-image:url(../images/icons/contact_icon.jpg)
}
.ulNltr a {
color: #4D4F44;
text-decoration: none;
}
.ulNltr a:hover {
color: #F89329;
text-decoration: none;
}
/* Tablet Layout: 481px to 768px. Inherits styles from: Mobile Layout. */
#media only screen and (min-width: 481px) {
.gridContainer {
margin-left: auto;
margin-right: auto;
width: 90.675%; /*width: 480px;*/
padding-left: 0.75%;
padding-right: 0.75%;
margin: auto;
clear: none;
float: none;
background-color: #fff;
}
.zeroMargin_tablet {
margin-left: 0;
}
.hide_tablet {
display: none;
}
#divEPMLogo {
background-color:#fff;
}
#divHeader {
font-family: Arial;
background-color: #F89329;
text-transform: uppercase;
font-size: 1rem;
color: #fff;
line-height: 1rem;
border: none;
}
#divHeader td.tdBanner {
background-image: url(../images/Mining_site_v2_Banner768.png);
background-position: bottom;
background-repeat: no-repeat;
background-size: contain;
height: 181px;
max-width: 480px;
margin: 0px;
}
#divSubheader {
font-family: Arial;
background-color: #fff;
text-transform: uppercase;
font-size: 1rem;
color: #4D4F44;
line-height: 1.3rem;
border: none;
}
div.divCnt {
width: 100%;
border: none;
}
#content header {
font-size: 1.1rem;
font-weight: bold;
color: #4D4F44;
font-family: Arial;
}
#content article {
font-size: 1rem;
color: #818183;
font-family: Arial;
}
#content hr {
width: 100%;
height: 3px;
color: #FFD022;
background-color: #FFD022;
border: none;
margin-top: 0px;
}
div.divBack {
width: 100%;
text-align: center;
}
div.divBack a {
color: #818183;
font-size: 0.9rem;
font-family: Arial;
text-decoration: none;
}
div.divBack a:hover {
color: #F89329;
text-decoration: none;
}
div.divRMBtn {
color: #fff;
background-color: #F89329;
text-align: center;
font-size: 0.9rem;
width: 6rem;
padding: 3px 0px;
font-family: Arial;
}
div.divRMBtn a {
color: #fff;
text-decoration: none;
}
div.divRMBtn a:hover {
color: #fff;
text-decoration: none;
}
div.divSecFt {
font-size: 0.8rem;
font-style: italic;
font-family: Arial;
padding: 10px 0px;
}
div.divSecFt a {
color: #4D4F44;
text-decoration: none;
}
div.divSecFt a:hover {
color: #F89329;
text-decoration: none;
}
div.container1 {
display:table-cell;
vertical-align: middle;
border: 1px solid black;
/*padding: 0px 0px 0px 30px;*/
position: relative;
left: 30px;
}
div.divForm {
font-family:Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 1rem;
text-align: left; width:50%;
height: 26rem;
min-width: 320px;
margin: 0 auto;
color:#4B4B4B;
border: none;
}
span.hdr {
color: #4D4F44;
text-wrap: none;
}
span.hdr2 {
color: #F59D51;
text-transform: uppercase;
font-size: 1.1rem;
font-weight: bold;
}
td.td-ico {
width: 73px;
max-width: 73px;
min-width: 73px;
text-align: center;
vertical-align: top;
padding-right: 5px;
}
.ulNltr{
color: #4D4F44;
font-family: Arial;
font-size: 0.8rem;
line-height: 1rem;
}
.ulNltr li {
padding-bottom: 10px;
list-style-image:url(../images/icons/bullet.png)
}
.ulNltr a {
color: #4D4F44;
text-decoration: none;
}
.ulNltr a:hover {
color: #F89329;
text-decoration: none;
}
}
/* Desktop Layout: 769px to a max of 1079px. Inherits styles from: Mobile Layout and Tablet Layout. */
#media only screen and (min-width: 769px) {
.gridContainer {
width: 88.5%; /*width: 768px;*/
max-width: 768px;
padding-left: 0.75%;
padding-right: 0.75%;
margin: auto;
clear: none;
float: none;
margin-left: auto;
margin-right: auto;
background-color: #fff;
}
.zeroMargin_desktop {
margin-left: 0;
}
.hide_desktop {
display: none;
}
#divEPMLogo {
background-color:#fff;
}
#divHeader {
font-family: Arial;
background-color: #F89329;
text-transform: uppercase;
font-size: 1rem;
color: #fff;
line-height: 1rem;
border: none;
}
#divHeader td.tdBanner {
background-image: url(../images/Mining_site_v2_Banner768.png);
background-position: center;
background-repeat: no-repeat;
background-size: contain;
height: 181px;
max-width: 768px;
margin: 0px;
}
#divSubheader {
font-family: Arial;
background-color: #fff;
text-transform: uppercase;
font-size: 1rem;
color: #4D4F44;
line-height: 1.3rem;
border: none;
}
div.divCnt {
width: 33%;
float: left;
border: none;
}
#content header {
font-size: 1.1rem;
font-weight: bold;
color: #4D4F44;
font-family: Arial;
}
#content article {
font-size: 1rem;
color: #818183;
font-family: Arial;
}
#content hr {
width: 100%;
height: 3px;
color: #FFD022;
background-color: #FFD022;
border: none;
margin-top: 0px;
}
div.cntRw {
display: table-cell;
}
div.divBack {
width: 100%;
text-align: center;
}
div.divBack a {
color: #818183;
font-size: 0.9rem;
font-family: Arial;
text-decoration: none;
}
div.divBack a:hover {
color: #F89329;
text-decoration: none;
}
div.divRMBtn {
color: #fff;
background-color: #F89329;
text-align: center;
font-size: 0.9rem;
width: 6rem;
padding: 3px 0px;
font-family: Arial;
}
div.divRMBtn a {
color: #fff;
text-decoration: none;
}
div.divRMBtn a:hover {
color: #fff;
text-decoration: none;
}
div.divSecFt {
font-size: 0.8rem;
font-style: italic;
font-family: Arial;
padding: 10px 0px;
}
div.divSecFt a {
color: #4D4F44;
text-decoration: none;
}
div.divSecFt a:hover {
color: #F89329;
text-decoration: none;
}
div.container1 {
display:table-cell;
vertical-align: middle;
border: 1px solid black;
/*padding: 0px 0px 0px 30px;*/
position: relative;
left: 30px;
}
div.divForm {
font-family:Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 1rem;
text-align: left; width:50%;
height: 26rem;
min-width: 320px;
margin: 0 auto;
color:#4B4B4B;
border: none;
}
span.hdr {
color: #4D4F44;
text-wrap: none;
}
span.hdr2 {
color: #F59D51;
text-transform: uppercase;
font-size: 1.1rem;
font-weight: bold;
}
td.td-ico {
width: 73px;
max-width: 73px;
min-width: 73px;
text-align: center;
vertical-align: top;
padding-right: 5px;
}
.ulNltr{
color: #4D4F44;
font-family: Arial;
font-size: 0.8rem;
line-height: 1rem;
}
.ulNltr li {
padding-bottom: 10px;
list-style-image:url(../images/icons/bullet.png)
}
.ulNltr a {
color: #4D4F44;
text-decoration: none;
}
.ulNltr a:hover {
color: #F89329;
text-decoration: none;
}
}
/* Desktop Layout: 1080p and beyond. Inherits styles from: Mobile Layout and Tablet Layout. */
#media only screen and (min-width: 1079px) {
.gridContainer {
width: 88.5%; /*width: 1192px; */
max-width: 1192px;
padding-left: 0.75%;
padding-right: 0.75%;
margin: auto;
clear: none;
float: none;
margin-left: auto;
margin-right: auto;
background-color: #fff;
}
.zeroMargin_desktop {
margin-left: 0;
}
.hide_desktop {
display: none;
}
#divEPMLogo {
background-color:#fff;
}
#divHeader {
font-family: Arial;
background-color: #F89329;
text-transform: uppercase;
font-size: 1rem;
color: #fff;
line-height: 1rem;
border: none;
clear: right;
}
#divHeader td.tdBanner {
background-image: url(../images/Mining_site_1192x181-12.png);
background-position: center;
background-repeat: no-repeat;
background-size: contain;
height: 181px;
max-width: 1191px;
margin: 0px;
}
#divSubheader {
font-family: Arial;
background-color: #fff;
text-transform: uppercase;
font-size: 1rem;
color: #4D4F44;
line-height: 1.3rem;
border: none;
}
div.divCnt {
width: 33%;
float: left;
border: none;
}
#content header {
font-size: 1.1rem;
font-weight: bold;
color: #4D4F44;
font-family: Arial;
}
#content article {
font-size: 1rem;
color: #818183;
font-family: Arial;
}
#content hr {
width: 100%;
height: 3px;
color: #FFD022;
background-color: #FFD022;
border: none;
margin-top: 0px;
}
div.cntRw {
display: table-cell;
}
div.divBack {
width: 100%;
text-align: center;
margin: 0px;
}
div.divBack a {
color: #818183;
font-size: 0.9rem;
font-family: Arial;
text-decoration: none;
}
div.divBack a:hover {
color: #F89329;
text-decoration: none;
}
div.divRM {
color: #818183;
font-size: 0.9rem;
font-family: Arial;
}
div.divRMBtn {
color: #fff;
background-color: #F89329;
text-align: center;
font-size: 0.9rem;
width: 6rem;
padding: 3px 0px;
font-family: Arial;
}
div.divRMBtn a {
color: #fff;
text-decoration: none;
}
div.divRMBtn a:hover {
color: #fff;
text-decoration: none;
}
div.divSecFt {
font-size: 0.8rem;
font-style: italic;
font-family: Arial;
padding: 10px 0px;
}
div.divSecFt a {
color: #4D4F44;
text-decoration: none;
}
div.divSecFt a:hover {
color: #F89329;
text-decoration: none;
}
div.container1 {
display:table-cell;
vertical-align: middle;
border: 1px solid black;
/*padding: 0px 0px 0px 30px;*/
position: relative;
left: 30px;
}
div.divForm {
font-family:Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 1rem;
text-align: left; width:50%;
height: 26rem;
min-width: 320px;
margin: 0 auto;
color:#4B4B4B;
border: none;
}
span.hdr {
color: #4D4F44;
text-wrap: none;
}
span.hdr2 {
color: #F59D51;
text-transform: uppercase;
font-size: 1.1rem;
font-weight: bold;
}
td.td-ico {
width: 73px;
max-width: 73px;
min-width: 73px;
text-align: center;
vertical-align: top;
padding-right: 5px;
}
.ulNltr{
color: #4D4F44;
font-family: Arial;
font-size: 0.8rem;
line-height: 1rem;
}
.ulNltr li {
padding-bottom: 10px;
list-style-image:url(../images/icons/bullet.png)
}
.ulNltr a {
color: #4D4F44;
text-decoration: none;
}
.ulNltr a:hover {
color: #F89329;
text-decoration: none;
}
}

It does seem that Firefox is having problems with the table within the div. I changed the HTML part to this:
<!-- Page header and banner -->
<div id="divHeader">
<div style="display: table-cell; vertical-align: middle;">
<p>Move Toward <span class="hdr">Zero Unplanned Downtime</span></p>
</div>
</div>
<div id="divHBanner">
<img src="images/Mining_site_1192x181-12.png" alt=""/>
</div>
<!-- End Page header and banner -->
It fixed the original error, but it opened up another. I will post a separate question for that instead.

I have tried in jsfiddle and in my web test page and everything is okay when I remove #charset"utf-8";
when I set it again, it went collided again

Related

I need help, my first time using OOCSS. How could I change this code?

This is basically my header and its a small project but my first time using OOCSS. I know that the principles are to seperate structure and skin to prevent repetetive code. But since my project is so small I have no clue of how i could implement it?
body {
font-family: "Lato", sans-serif;
background-color: white;
}
.wrapper {
max-width: 1024px;
margin: 0 auto;
background-color: #eee;
border: 1px solid black;
}
.header {
height: 350px;
background-image: url(bilder/vietnam_770.jpg);
background-repeat: no-repeat;
background-position: center;
}
.header h1 {
font-family: "Roboto", sans-serif;
font-size: 30px;
font-weight: 700;
float: left;
margin-left: 150px;
margin-top: 10px;
}
.meny ul {
list-style-type: none;
display: flex;
flex-direction: row;
float: right;
margin-right: 170px;
margin-top: 17px;
}
.meny li {
margin-left: 1em;
}
.meny a {
text-decoration: none;
font-size: 14px;
font-weight: 700;
color: black;
padding: 0.25em;
}
.meny a:hover {
color: darkgrey;
}
.meny .current {
border-bottom: 1px solid black;
}
.meny .current:hover {
color: black;
}
.beskrivning {
float: right;
width: 250px;
margin-right: 175px;
margin-top: 80px;
text-align: center;
}
.beskrivning h2 {
font-family: "Lato", sans-serif;
font-size: 24px;
font-weight: 700;
}
.beskrivning p {
margin-top: 0.5em;
font-size: 14px;
font-weight: 700;
line-height: 15px;
}
Tried reading and looking for examples but all examples had repetetive code which made it easy to determine.

Drop Down Menu Issue (position)

I need help with the drop down menus. I encounter this issue when I hover on top of the tabs with hidden drop down menus. I followed the W3Schools instructions
The W3Schools instructions asked me to use position: absolute but if I do that instead of position: relative the drop down menus won't even open.
.dropdown {
float: left;
overflow: hidden;
}
.dropdown .projects {
color: #fff39e;
border: none;
background-color: #f9fae8;
font-size: 18px;
padding: 12px;
text-decoration: none;
font-family: 'Lato', sans-serif, Helvetica;
font-weight: 900;
line-height: 25px;
margin: 0;
}
.dropdown-projects {
display: none;
position: relative;
color: #f9fae8;
background-color: #101119;
min-width: 160px;
z-index: 2;
}
.dropdown-projects a {
float: none;
color: #f9fae8;
padding: 10px;
text-decoration: none;
display: block;
text-align: left;
font-size: 16px;
font-family: 'Lato', sans-serif, Helvetica;
font-weight: 400;
line-height: 0.6;
margin: 0;
}
.dropdown-projects a:hover {
color: #fff39e !important;
}
.dropdown:hover .dropdown-projects {
display: block;
}
.dropdown .dilettante {
color: #caf5ce;
border: none;
background-color: #f9fae8;
font-size: 18px;
padding: 12px;
text-decoration: none;
font-family: 'Lato', sans-serif, Helvetica;
font-weight: 900;
line-height: 25px;
margin: 0;
}
.dropdown-dilettante {
display: none;
position: relative;
color: #f9fae8;
background-color: #101119;
min-width: 160px;
z-index: 2;
}
.dropdown-dilettante a {
float: none;
color: #f9fae8;
padding: 10px;
text-decoration: none;
display: block;
text-align: left;
font-size: 16px;
font-family: 'Lato', sans-serif, Helvetica;
font-weight: 400;
line-height: 0.6;
margin: 0;
}
.dropdown-dilettante a:hover {
color: #caf5ce !important;
}
.dropdown:hover .dropdown-dilettante {
display: block;
}
<div class="dropdown">
<button class="projects">PROJECTS</button>
<div class="dropdown-projects">
ART DIRECTION
BRANDING
GRAPHIC DESIGNS
PHOTOGRAPHY
</div>
<button class="dilettante">DILETTANTE</button>
<div class="dropdown-dilettante">
INSTAGRAM
QUOTES
PLAYLIST
GOODREADS
FILMS
</div>
</div>
In the HTML, wrap both menu items in <div class="dropdown">.
In the CSS, add position: absolute on hover.
.dropdown {
float: left;
overflow: hidden;
}
.dropdown .projects {
color: #fff39e;
border: none;
background-color: #f9fae8;
font-size: 18px;
padding: 12px;
text-decoration: none;
font-family: 'Lato', sans-serif, Helvetica;
font-weight: 900;
line-height: 25px;
margin: 0;
}
.dropdown-projects {
display: none;
position: relative;
color: #f9fae8;
background-color: #101119;
min-width: 160px;
z-index: 2;
}
.dropdown-projects a {
float: none;
color: #f9fae8;
padding: 10px;
text-decoration: none;
display: block;
text-align: left;
font-size: 16px;
font-family: 'Lato', sans-serif, Helvetica;
font-weight: 400;
line-height: 0.6;
margin: 0;
}
.dropdown-projects a:hover {
color: #fff39e !important;
}
.dropdown:hover .dropdown-projects {
display: block;
/* added */
position: absolute;
}
.dropdown .dilettante {
color: #caf5ce;
border: none;
background-color: #f9fae8;
font-size: 18px;
padding: 12px;
text-decoration: none;
font-family: 'Lato', sans-serif, Helvetica;
font-weight: 900;
line-height: 25px;
margin: 0;
}
.dropdown-dilettante {
display: none;
position: relative;
color: #f9fae8;
background-color: #101119;
min-width: 160px;
z-index: 2;
}
.dropdown-dilettante a {
float: none;
color: #f9fae8;
padding: 10px;
text-decoration: none;
display: block;
text-align: left;
font-size: 16px;
font-family: 'Lato', sans-serif, Helvetica;
font-weight: 400;
line-height: 0.6;
margin: 0;
}
.dropdown-dilettante a:hover {
color: #caf5ce !important;
}
.dropdown:hover .dropdown-dilettante {
display: block;
}
<div class="dropdown">
<button class="projects">PROJECTS</button>
<div class="dropdown-projects">
ART DIRECTION
BRANDING
GRAPHIC DESIGNS
PHOTOGRAPHY
</div>
</div>
<div class="dropdown">
<button class="dilettante">DILETTANTE</button>
<div class="dropdown-dilettante">
INSTAGRAM
QUOTES
PLAYLIST
GOODREADS
FILMS
</div>
</div>
use absolute position in you dropdown and following code for display
.projects:hover + div.dropdown-projects {
display: block;
}
.dilettante:hover + div.dropdown-dilettante {
display: block;
}
here is the working file
also your code need lots of other improvement.
Does this help? JSFiddle
You'll have to edit CSS accordingly
.navbar {
overflow: hidden;
background-color: #fff;
/* Chnage the Background */
padding: 10px;
font-size: 16px;
font-family: 'Lato', sans-serif, Helvetica;
line-height: 0.6;
}
.navbar a {
float: left;
font-size: 16px;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
.dropdown {
float: left;
overflow: hidden;
}
.dropdown .dropbtn {
font-size: 16px;
border: none;
outline: none;
color: #FFF39E;
padding: 14px 16px;
background-color: inherit;
font-family: inherit;
font-weight: 900;
margin: 0;
}
.navbar a:hover,
.dropdown:hover .dropbtn {
background-color: transparent;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #000;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
z-index: 1;
}
.dropdown-content a {
float: none;
color: #fff;
padding: 12px 16px;
text-decoration: none;
display: block;
text-align: left;
}
#dilettante {
color: #E1F7DB !important;
}
#projects {
color: #FFF39E;
}
.dropdown-content a:hover {
background-color: #000;
color: #FFF39E;
}
#dilettantedropdown a:hover {
color: #CAF5CE;
}
.dropdown:hover .dropdown-content {
display: block;
}
<div class="navbar">
<div class="dropdown">
<button class="dropbtn" id="projects">PROJECTS</button>
<div class="dropdown-content">
ART DIRECTION
BRANDING
GRAPHIC DESIGNS
PHOTOGRAPHY
</div>
</div>
<div class="dropdown">
<button class="dropbtn " id="dilettante">DILETTANTE
</button>
<div id="dilettantedropdown" class="dropdown-content dilettante">
INSTAGRAM
QUOTES
PLAYLIST
GOODREADS
FILMS
</div>
</div>
</div>

Adjust background size on hover

When you hover over the image, you will see that it will be replaced by the semi-transparent background in my code.
The transparent background is supposed to cover all the picture, however, it only covers the area taken by the text.
How do I make sure that it covers the whole picture, regardless of the text within the box?
/*Programs*/
ul.img-list {
list-style-type: none;
margin: 0;
padding: 0;
text-align: center;
}
ul.img-list li {
display: inline-block;
width: 100%;
height: 100%;
margin: 0;
position: relative;
}
div.text-content {
background: rgba(26,33,43,0.9);
color: white;
cursor: pointer;
display: table;
left: 0;
position: absolute;
top: 0;
width: 100%;
height: 100%;
opacity: 0;
font-size: 20px;
font-family: Roboto;
line-height: 24px;
font-weight: 200;
text-align: center;
overflow-y: auto;
padding-right: 25px;
padding-left: 25px;
padding-top: 25px;
padding-bottom: 25px;
box-sizing: border-box;
-webkit-transition: opacity 500ms;
-moz-transition: opacity 500ms;
-o-transition: opacity 500ms;
transition: opacity 500ms;
overflow-y: auto;
}
div.text-content div {
display: block;
text-align: center;
vertical-align: middle;
}
ul.img-list li:hover div.text-content {
opacity: 1;
}
/* Events page */
/*Event link button*/
.btn {
background-color: transparent;
border-radius: 42px;
border: 2px solid #ffffff;
display: inline-block;
cursor: pointer;
font-family: Roboto;
line-height: 28px;
font-size: 24px;
padding: 5px 15px 5px 15px;
margin-right: 45px;
margin-left: 45px;
}
.btn:link {
color: #ffffff;
text-decoration: none;
}
.btn:visited {
color: #1b1c16;
text-decoration: none;
}
.btn:hover {
background-color: #ffffff;
color: #1b1c16 !important;
}
.btn:active {
position: relative;
top: 1px;
}
/*All events button*/
.evens_btn {
background: ;
}
.events_btn>span{
color: #f9c70f;
font-family: Roboto;
color: #ffffff;
font-size: 24px !important;
background: ;
text-decoration: none !important;
padding: 10px 0px 10px 0px;
}
.events_btn>i{
color: #ffffff;
margin-right: 15px;
font-size: 50px;
}
.events_btn:link>i {
color: #f9c70f;
}
.events_btn:visited>i {
color: #ffffff;
text-decoration: none;
}
.events_btn:hover>i {
color: #f9c70f;
}
.events_btn:active>i {
color: #f9c70f;
}
.events_btn:link>span {
color: #f9c70f;
}
.events_btn:visited>span {
color: #ffffff;
text-decoration: none;
}
.events_btn:hover>span {
color: #f9c70f ;
}
.events_btn:active>span {
color: #f9c70f;
}
<ul class="img-list">
<li><img style="width: 100%; height: 100%;" src="http://www.sflsupport.org/wp-content/uploads/2016/06/Programs-11.jpg" />
<div class="text-content">
<div>
<h5 style="color: white; font-size: 38px; font-family: Montserrat; font-weight: 600; line-height: 42px; letter-spacing: 2px;">WEBINAR<br/>ARCHIVE</h5>
<hr style="border-top: 2px solid #ffffff; width: auto; margin: 10px 30px;"/>Throughout the years SFL has ammased the library of recorded webinars from some of the leading libertarian voices about numerous topics in philosophy, politics, and economics. How can the government fix the higher education bubble? What is Ayn Rand's theory of natural rights? Tune in to our videos for answers to these questions and many more.
<br>
<a class="btn" style="color: white; text-align: center; margin-top: 10px; padding-top: 5px; padding-bottom: 5px; padding-left: 30px; padding-right: 30px; text-decoration: none; font-size: 24px; font-weight: 600; border: 3px solid white; letter-spacing: 2px;" href="http://www.google.com/" target="_blank">READ MORE</a>
</div>
</div>
</li>
</ul>
Remove display:table; from .text-content. Also add bottom:0; to it.
Remove display: table;, and for aligning the content vertically center use CSS Flexbox's align-content property.
Have a look at the snippet below:
/*Programs*/
ul.img-list {
list-style-type: none;
margin: 0;
padding: 0;
text-align: center;
}
ul.img-list li {
display: inline-block;
width: 100%;
height: 100%;
margin: 0;
position: relative;
}
div.text-content {
background: rgba(26,33,43,0.9);
color: white;
cursor: pointer;
display: flex;
align-items: center;
left: 0;
position: absolute;
top: 0;
width: 100%;
height: 100%;
opacity: 0;
font-size: 20px;
font-family: Roboto;
line-height: 24px;
font-weight: 200;
text-align: center;
overflow-y: auto;
padding-right: 25px;
padding-left: 25px;
padding-top: 25px;
padding-bottom: 25px;
box-sizing: border-box;
-webkit-transition: opacity 500ms;
-moz-transition: opacity 500ms;
-o-transition: opacity 500ms;
transition: opacity 500ms;
overflow-y: auto;
}
div.text-content div {
display: block;
text-align: center;
vertical-align: middle;
}
ul.img-list li:hover div.text-content {
opacity: 1;
}
/* Events page */
/*Event link button*/
.btn {
background-color: transparent;
border-radius: 42px;
border: 2px solid #ffffff;
display: inline-block;
cursor: pointer;
font-family: Roboto;
line-height: 28px;
font-size: 24px;
padding: 5px 15px 5px 15px;
margin-right: 45px;
margin-left: 45px;
}
.btn:link {
color: #ffffff;
text-decoration: none;
}
.btn:visited {
color: #1b1c16;
text-decoration: none;
}
.btn:hover {
background-color: #ffffff;
color: #1b1c16 !important;
}
.btn:active {
position: relative;
top: 1px;
}
/*All events button*/
.evens_btn {
background: ;
}
.events_btn>span{
color: #f9c70f;
font-family: Roboto;
color: #ffffff;
font-size: 24px !important;
background: ;
text-decoration: none !important;
padding: 10px 0px 10px 0px;
}
.events_btn>i{
color: #ffffff;
margin-right: 15px;
font-size: 50px;
}
.events_btn:link>i {
color: #f9c70f;
}
.events_btn:visited>i {
color: #ffffff;
text-decoration: none;
}
.events_btn:hover>i {
color: #f9c70f;
}
.events_btn:active>i {
color: #f9c70f;
}
.events_btn:link>span {
color: #f9c70f;
}
.events_btn:visited>span {
color: #ffffff;
text-decoration: none;
}
.events_btn:hover>span {
color: #f9c70f ;
}
.events_btn:active>span {
color: #f9c70f;
}
<ul class="img-list"><li><img style="width: 100%; height: 100%;" src="http://www.sflsupport.org/wp-content/uploads/2016/06/Programs-11.jpg" /><div class="text-content"><div><h5 style="color: white; font-size: 38px; font-family: Montserrat; font-weight: 600; line-height: 42px; letter-spacing: 2px;">WEBINAR<br/>ARCHIVE</h5><hr style="border-top: 2px solid #ffffff; width: auto; margin: 10px 30px;"/>Throughout the years SFL has ammased the library of recorded webinars from some of the leading libertarian voices about numerous topics in philosophy, politics, and economics. How can the government fix the higher education bubble? What is Ayn Rand's theory of natural rights? Tune in to our videos for answers to these questions and many more.<br><a class="btn" style="color: white; text-align: center; margin-top: 10px; padding-top: 5px; padding-bottom: 5px; padding-left: 30px; padding-right: 30px; text-decoration: none; font-size: 24px; font-weight: 600; border: 3px solid white; letter-spacing: 2px;" href="http://www.google.com/" target="_blank">READ MORE</a></div></div></li></ul>
Hope this helps!
/*Programs*/
ul.img-list {
list-style-type: none;
margin: 0;
padding: 0;
text-align: center;
}
ul.img-list li {
display: inline-block;
width: 100%;
height: 100%;
margin: 0;
position: relative;
}
div.text-content {
background: rgba(26,33,43,0.9);
color: white;
cursor: pointer;
left: 0;
position: absolute;
top: 0;
width: 100%;
height: 100%;
opacity: 0;
font-size: 20px;
font-family: Roboto;
line-height: 24px;
font-weight: 200;
text-align: center;
overflow-y: auto;
padding-right: 25px;
padding-left: 25px;
padding-top: 25px;
padding-bottom: 25px;
box-sizing: border-box;
-webkit-transition: opacity 500ms;
-moz-transition: opacity 500ms;
-o-transition: opacity 500ms;
transition: opacity 500ms;
overflow-y: auto;
}
div.text-content div {
display: table-cell;
text-align: center;
vertical-align: middle;
width: 100%;
height: 100%;
}
ul.img-list li:hover div.text-content {
opacity: 1;
}
/* Events page */
/*Event link button*/
.btn {
background-color: transparent;
border-radius: 42px;
border: 2px solid #ffffff;
display: inline-block;
cursor: pointer;
font-family: Roboto;
line-height: 28px;
font-size: 24px;
padding: 5px 15px 5px 15px;
margin-right: 45px;
margin-left: 45px;
}
.btn:link {
color: #ffffff;
text-decoration: none;
}
.btn:visited {
color: #1b1c16;
text-decoration: none;
}
.btn:hover {
background-color: #ffffff;
color: #1b1c16 !important;
}
.btn:active {
position: relative;
top: 1px;
}
/*All events button*/
.evens_btn {
background: ;
}
.events_btn>span{
color: #f9c70f;
font-family: Roboto;
color: #ffffff;
font-size: 24px !important;
background: ;
text-decoration: none !important;
padding: 10px 0px 10px 0px;
}
.events_btn>i{
color: #ffffff;
margin-right: 15px;
font-size: 50px;
}
.events_btn:link>i {
color: #f9c70f;
}
.events_btn:visited>i {
color: #ffffff;
text-decoration: none;
}
.events_btn:hover>i {
color: #f9c70f;
}
.events_btn:active>i {
color: #f9c70f;
}
.events_btn:link>span {
color: #f9c70f;
}
.events_btn:visited>span {
color: #ffffff;
text-decoration: none;
}
.events_btn:hover>span {
color: #f9c70f ;
}
.events_btn:active>span {
color: #f9c70f;
}
<ul class="img-list"><li><img style="width: 100%; height: 100%;" src="http://www.sflsupport.org/wp-content/uploads/2016/06/Programs-11.jpg" /><div class="text-content"><div><h5 style="color: white; font-size: 38px; font-family: Montserrat; font-weight: 600; line-height: 42px; letter-spacing: 2px;">WEBINAR<br/>ARCHIVE</h5><hr style="border-top: 2px solid #ffffff; width: auto; margin: 10px 30px;"/>Throughout the years SFL has ammased the library of recorded webinars from some of the leading libertarian voices about numerous topics in philosophy, politics, and economics. How can the government fix the higher education bubble? What is Ayn Rand's theory of natural rights? Tune in to our videos for answers to these questions and many more.<br><a class="btn" style="color: white; text-align: center; margin-top: 10px; padding-top: 5px; padding-bottom: 5px; padding-left: 30px; padding-right: 30px; text-decoration: none; font-size: 24px; font-weight: 600; border: 3px solid white; letter-spacing: 2px;" href="http://www.google.com/" target="_blank">READ MORE</a></div></div></li></ul>
Just add this Css:
.text-content div{
height:1326px;
}

CSS background color width reduces when browser window is resized

I have a page but when I resize the browser window the background color gets cut down. I want the color to expand to the full browser width. One of my divs is bigger than the other ones. What is the fix for this?
The CSS is below:
#charset "utf-8";
/* ==========================================================================
RESET STYLES
========================================================================== */
* {
margin: 0; padding: 0;
}
html,
button,
input,
select,
textarea {
color: #222;
}
body {
font-size: 1em;
line-height: 1.4;
}
img {
border: 0 none;
}
/* ==========================================================================
BASE STYLES
========================================================================== */
html {
height: 100%;
}
body {
font-family: Arial, Helvetica Sans-serif;
width: 100%;
height: 100%;
color: #595959;
}
.col-full {
width: 1014px;
margin: 0 auto;
}
h1, h2, h3, h4, h5, h6 {
font-family: Helvetica, Arial, Sans-serif;
}
/* ==========================================================================
HEADER STYLES
========================================================================== */
#header h1 {
margin-top: 26px;
float: left;
}
h1 a span {
display: none;
}
#login-form {
float: right;
margin: 25px 92px 12px 0;
}
#login-form input {
width: 150px;
height: 29px;
line-height: 29px;
border: 1px solid #a5a5a5;
color: #797979;
font-size: 14px;
padding-left: 8px;
margin-left: 3px;
}
#login-form #login-button {
width: 72px;
height: 30px;
background: url(../img/login-bg.png) top repeat-x;
border: 1px solid #494949;
cursor: pointer;
margin-left: 0;
font-weight: bold;
color: #FFF;
font-size: 13px;
padding-left: 0;
text-shadow: 1px 1px 1px #3f3f3f;
filter: dropshadow(color=#3f3f3f, offx=1, offy=1);
}
.form-buttons {
margin-left: 3px;
}
.form-buttons a {
text-decoration: none;
font-size: 12px;
color: #ef4926;
margin-right: 116px;
}
.nav {
clear: both;
width: 100%;
height: 47px;
background: #000;
}
.nav ul {
margin-top: 10px;
float: left;
}
.nav ul li {
float: left;
list-style: none;
margin-right: 53px;
}
.nav ul li a {
text-decoration: none;
font-family: Helvetica;
font-weight: bold;
color: #FFF;
/*font-size: 16px;*/
font-size: 15px;
}
.top-heading {
background: #363737;
height: 57px;
border-top: 1px solid #727272;
border-bottom: 1px solid #727272;
}
.top-heading h2 {
/*font-size: 28px;*/
font-size: 27px;
color: #FFF;
text-shadow: 1px 1px 2px #282929;
filter: dropshadow(color=#282929, offx=1, offy=1);
padding-top:8px;
}
#featured {
background: url(../img/featured-gd.png) repeat-x;
}
#featured .col-full {
background: url(../img/featured-bg.jpg) no-repeat;
}
.featured-content {
width: 454px;
float: left;
margin-right: 40px;
}
.featured-content h2 {
color: #FFF;
/*font-size: 38px;*/
font-size: 37px;
line-height: 1.15;
margin-top: 45px;
margin-bottom: 12px;
text-shadow: 1px 1px 2px #282929;
filter: dropshadow(color=#282929, offx=1, offy=1);
}
.featured-content p {
font-size: 15px;
color: #FFF;
line-height: 1.46;
}
.register-btn {
display: block;
width: 164px;
height: 39px;
text-decoration: none;
background: url(../img/register-btn.png) repeat-x;
text-align: center;
font-family: Helvetica;
font-weight: bold;
margin-top: 27px;
font-size: 22px;
color: #FFF;
padding-top: 4px;
-webkit-box-shadow: 0px 0px 1px 1px #2e2e2e;
box-shadow: 0px 0px 2px 2px #2e2e2e;
}
#featured img {
margin-top: 6px;
margin-bottom: 2px;
}
/* ==========================================================================
MAIN STYLES
========================================================================== */
#features {
background: #ff5423;
overflow: hidden;
}
#features h3 {
line-height: 1.15;
color: #FFF;
font-family: Helvetica;
padding-top: 24px;
margin-bottom: 13px;
/*font-size: 26px;*/
font-size: 25px;
}
.features-left {
width: 447px;
float: left;
margin-right: 62px;
}
.features-right {
width: 472px;
float: left;
}
.features-right ul {
margin-left: 15px;
}
.features-right ul li {
line-height: 1.76;
color: #ffc3b2;
font-size: 14px;
padding-left: 2px;
}
.features-right ul li span {
font-size: 17px;
color: #fefefe;
position: relative;
top: 2px;
}
.more-features {
display: block;
width: 144px;
height: 28px;
color: #fb3800;
font-family: Helvetica;
/*font-size: 17px;*/
font-size: 16px;
font-weight: bold;
text-align: center;
padding-top: 4px;
text-decoration: none;
background: url(../img/more-features.png) repeat-x;
margin-top: 38px;
margin-bottom: 23px;
}
#client-list {
border-top: 4px solid #a6a6a6;
border-bottom: 4px solid #c6c6c6;
padding-bottom: 7px;
}
#client-list .col-full {
width: 1080px;
}
#client-list h4 {
color: #4d4d4d;
/*font-size: 18px;*/
font-size: 17px;
margin-top: 39px;
}
#client-list .more-clients {
float: left;
text-decoration: none;
font-size: 15px;
color: #ff5423;
}
#client-list img {
margin-left: 90px;
margin-top: -44px;
}
#main {
clear: both;
background: url(../img/main-gd.png) repeat;
}
.col-446 {
width: 446px;
float: left;
margin-right: 55px;
}
.col-476 {
width: 476px;
float: left;
}
.col-476 p {
margin-right: 25px;
}
#main h3 {
font-family: Helvetica;
/*font-size: 28px;*/
font-size: 27px;
color: #535353;
line-height: 1.07;
margin-top: 30px;
margin-bottom: 14px;
}
#main p {
font-size: 14px;
line-height: 1.64;
margin-bottom: 21px;
}
.site-features {
margin-top: 32px;
float: left;
}
.site-features li {
list-style: none;
float: left;
margin-right: 35px;
}
li.sf-last {margin-right: 0;}
.site-features li a {
}
.join-box {
}
.join-btn {
}
.join-box p {
}
/* ==========================================================================
FOOTER STYLES
========================================================================== */
h4 a span {
display: none;
}
#footer {
clear: both;
}
I think the best way to solve this is to add a minimum width to your body. This way when the viewport is too narrow to show all your content, a horizontal scrollbar will allow the user to access the entire page. By the looks of your content, min-width: 1100px; would be just about right.

How can I add date to this code?-after the title of the post--> (Wordpress System)

body {
font-family:"tahoma", "tahoma", "tahoma", tahoma;
font-style:normal;
font-variant:normal;
font-weight:400;
font-size:12px;
line-height:normal;
text-align:center;
background-color: #1B2F3A;
margin: 0px;
background-image: url(http://auroraa.webloghaa.com/files/body_bg.jpg);
background-repeat: repeat-x;
background-position: top;
}
.right {
float: right;
}
.right {
float: right;
}
.aligncenter {
display: block;
margin-right: auto;
margin-right: auto;
}
.alignright {
float: right;
}
.alignright {
float: right;
}
.clear {
clear: both;
}
h1 {
font-family: "Tahoma", Tahoma, Tahoma;
font-size: 48px;
font-weight: normal;
margin: 0px;
}
h2 {
font-size: 18px;
color: #1B2F3A;
font-weight: bold;
margin:0px;
padding: 0px;
}
h3 {
font-size: 16px;
line-height: 20px;
color: #FFFFFF;
}
h3 span {
font-weight: bold;
}
h4 {
font-size: 16px;
color: #003300;
}
#wrapper {
width: 940px;
}
#top_menu {
height: 30px;
width: 100%;
color: #FFFFFF;
}
#pages {
font-size: 10px;
color: #FFFFFF;
width: 600px;
text-align: right;
line-height: 30px;
}
#pages ul {
padding: 0;
margin: 0;
}
#pages li {
display: inline;
padding-right: 15px;
color: #fff;
text-transform: uppercase;
}
#pages a {
color: #9CBDCC;
text-decoration: none;
}
#pages a:hover {
color: #FFFFFF;
}
#search {
width: 220px;
height: 30px;
text-align: right;
background-image: url(http://auroraa.webloghaa.com/files/bgr-search.gif);
background-repeat: no-repeat;
background-position: right;
}
#search input{
background: transparent;
border: 0;
color: #a3a192;
float: right;
font-size: 12px;
margin: 7px 0 0 10px;
width: 178px;
padding:2px;
}
#search .btn{
padding: 0;
width: auto;
height: 20px;
font-weight: bold;
color: #D3E7F0;
margin-top: 7px;
margin-right: 0;
margin-bottom: 0;
margin-right: 0;
}
.blog-search {width:100px;}
#header {
color:#D3E7F0;
text-align: left;
width: 100%;
height: 110px;
background-image: url(http://auroraa.webloghaa.com/files/moon-300x100.jpg);
background-repeat: no-repeat;
background-position: right top;
}
#header a {
text-decoration: none;
color:#D3E7F0;
}
#header a:hover {
color:#FFFFFF;
}
#categories {
width: 100%;
height: 31px;
text-align: right;
}
#categories ul {
margin: 0px;
padding: 0px;
width: 800px;
}
#categories a {
margin-right: 15px;
font-size: 14px;
color: #1B2E3C;
font-weight: bold;
text-decoration: none;
line-height: 32px;
text-transform: uppercase;
font-family: Tahoma, Tahoma, Tahoma;
}
#categories li {
float: right;
margin: 0px;
padding: 0px;
list-style: none;
}
#categories li li {
float: right;
margin: 0px;
padding: 0px;
width: 150px;
}
#categories li li a, #categories li li a:link, #categories li li a:visited {
float: none;
margin: 0px;
padding: 2px 5px;
width: 150px;
color: #fff;
font-size: 11px;
line-height: 30px;
background-color: #476674;
display: block;
}
#categories li li a:hover, #categories li li a:active {
color: #fff;
background-color: #000000;
text-decoration: none;
}
#categories li ul {
right: -999em;
position: absolute;
z-index: 10;
width: 10em;
}
#categories li:hover ul {
display: block;
right: auto;
}
#categories a:hover {
text-decoration: underline;
}
#categories li:hover ul, #categories li.sfhover ul {
right: auto;
}
#rss{
right:0px;
display: inline;
float:right;
margin-top: -10px;
}
.cat {width: 890px;}
#container {
width: 100%;
margin-top: 20px;
}#content {
background-color: #eaf3f7;
padding: 10px;
width: 610px;
text-align: right;
border: 1px solid #000000;
}
.post {
width: 100%;
}
.post h2 a,.post h2 a:visited, .post h3 a,.post h3 a:visited {
color:#1B2F3A;
text-decoration: none;
font-size: 18px;
}
.post h2 a:hover {
text-decoration: underline;
}
.post h3 a,.post h3 a:visited {
color:#476C7F;
text-decoration: none;
font-size: 16px;
}
.post h3 a:hover {
text-decoration: underline;
}
.post h3, #content h3 {
color:#000000;
}
.post p a,.post p a:visited {
color:#1B2F3A;
text-decoration: none;
font-weight: bold;
}
.post p a:hover {
text-decoration: underline;
font-weight: bold;
}
.post_details {
height: 20px;
width: 100%;
}
.post_details a {
color: #1B2F3A;
text-decoration: none;
font-weight: bold;
}
.post_details a:hover {
text-decoration: underline;
}
.post_data {
font-size: 10px;
color: #666666;
width: 480px;
height: 20px;
line-height: 20px;
text-align: right;
}
.post_comments {
text-align: right;
height: 20px;
font-size: 10px;
line-height: 20px;
background-image: url(http://images/comments_icon.jpg);
background-repeat: no-repeat;
background-position: right center;
text-indent: 20px;
}
.post p img {
padding: 2px;
border: 1px solid #000000;
margin: 5px;
}
.post p {
line-height: 20px;
}
.more {
font-size: 10px;
color: #1B2F3A;
width: 100%;
height: 20px;
line-height: 20px;
text-align: right;
border-bottom-width: 1px;
border-bottom-style: dotted;
border-bottom-color: #8BABB8;
padding-bottom: 5px;
margin-bottom: 20px;
}
.more a {
color:#000000;
text-decoration: none;
}
.tags {
font-size: 10px;
color: #1B2F3A;
width: 400px;
height: 20px;
line-height: 20px;
text-align: right;
background-image: url(http://auroraa.webloghaa.com/files/tags1.jpg);
background-repeat: no-repeat;
background-position: right ;
text-indent: 25px;
}
.tags a {
text-decoration:none;
}
.tags a:hover {
text-decoration: underline;
}
.read_more {
text-align: right;
height: 20px;
font-size: 10px;
line-height: 20px;
color: #FFFFFF;
}
#comments-list {
color:#000000;
}
#comments-list a {
font-weight: bold;
}
#comments-list img {
padding: 0px 10px 10px 0px;
}
#comments-list li {
background-color: #E2EFF5;
padding: 10px;
border-top-width: 1px;
border-bottom-width: 1px;
border-top-style: solid;
border-bottom-style: solid;
border-top-color: #F7FBFD;
border-bottom-color: #CCCCCC;
}
.comment-meta {
color:#666666;
font-size: 10px;
text-align: right;
}
.comment-meta a {
color:#1B2F3A;
text-decoration:none;
}
.comment-meta a:hover {
text-decoration:underline;
}
.avatar {
float: right;
padding: 2px;
}
.pagination {
width: 100%;
padding: 5px;
}
.pagination a, .pagination a:visited {
color:#006600;
text-decoration:none;
}
.pagination a:hover {
text-decoration: underline;
}
.nav {
width: 82px;
height: 21px;
color:#006600;
}
.nav a, .nav a:visited {
color:#006600;
text-decoration:none;
}
.nav a:hover {
text-decoration: underline;
}
#sidebar {
background-color: #EAF3F7;
width: 280px !important;
width: 270px;
padding: 10px;
text-align: center;
}
.box {
width: 93%;
background-color: #03080C;
background-image: url(http://auroraa.webloghaa.com/files/box1.jpg);
background-repeat: no-repeat;
background-position: center top;
padding: 10px;
text-align: right;
color: #FFFFFF;
margin-bottom: 20px;
line-height: 20px;
font-family: Tahoma, Tahoma, Tahoma, Tahoma;
}
.box a, .box a:visited {
color:#9ABBCA;
font-weight: bold;
text-decoration: none;
}
.box a:hover {
color:#FFFFFF;
text-decoration: underline;
}
.box ul {
margin: 0px;
padding: 0px;
list-style-position: inside;
}
.boxline {
border-top-width: 1px;
border-top-style: solid;
border-top-color: #243440;
margin: 0px;
height: 5px;
}
.box_title {
color:#FFFFFF;
font-size: 18px;
width: 100%;
text-align: center;
padding-top: 5px;
padding-bottom: 5px;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #000000;
}
#footer {
width: 100%;
text-align: center;
height: 20px;
font-size: 10px;
color: #FFFFFF;
padding-top: 10px;
background-color: #000000;
margin-top: 20px;
border-top-width: 1px;
border-top-style: solid;
border-top-color: #666666;
}
#footer a, #footer a:visited {
font-weight: bold;
color: #FFFFFF;
text-decoration: none;
}
#footer a:hover {
text-decoration: underline;
}
.previous{
height:19px;
padding:0px 10px 0px 18px;
float:right;
font-weight:bold;
background-image: url(http://images/prev.gif);
background-repeat: no-repeat;
background-position: right center;
}
.next{
height:19px;
padding:0px 18px 0px 35px;
float:right;
font-weight:bold;
background-image: url(http://images/next.gif);
background-repeat: no-repeat;
background-position: right center;
}
*html .next{
height:18px;
text-align:right;
}
.previous a, .previous a:visited, .next a, .next a:visited{
color:#666666;
}
.previous a:hover, .next a:hover{
color:#5283C0;
font-weight:bold;
}
.previous:hover{
background-image: url(http://auroraa.webloghaa.com/files/prev_on.gif);
background-repeat: no-repeat;
background-position: right center;
}
.next:hover{
background-image: url(http://auroraa.webloghaa.com/files/next_on.gif);
background-repeat: no-repeat;
background-position: right center;
}
.meta_entry {
width:98%;
background:#000000;
color:#FFFFFF;
font-size: 10px;
line-height: 15px;
padding: 5px;
margin-bottom: 10px;
}
.meta_entry a, #meta_entry a:visited {
color:#CFE3EC;
font-weight: bold;
}
.meta_entry a:hover {
color:#FFFFFF;
font-weight: bold;
}
.navigation a {
background-color: #1B2F3A;
line-height: 20px;
color: #FFFFFF;
padding: 5px;
text-decoration: none;
}
.navigation a:hover {
background-color: #03080C;
}
.wp-caption {
border: 1px solid #ddd;
text-align: center;
background-color: #f3f3f3;
padding-top: 4px;
margin: 10px;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
}
.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;
}
blockquote {
border-right:2px dotted #1B2F3A;
background:#eef3f8;
margin-bottom:10px;
margin-right:20px;
padding:10px;
}
blockquote p {
margin:0;
}
a.download:link {
font-family: Tahoma, Tahoma,Tahoma, Tahoma;
font-size: 16px;
color: #F9FEFF;
text-transform: uppercase;
font-weight: bold;
line-height: 50px;
text-align: center;
text-decoration: none;
background: url(http://images/download_bg.jpg) no-repeat 0 0;
height: 50px;
width: 400px;
padding-right: 100px;
display: block;
clear: both;
overflow: hidden;
margin: 10px 50px 10px 50px;
}
a.download:hover {
background-position: 0px -50px;
color: #D9EAF2;
text-decoration: none;
}
#related {
width: 600px;
clear: both;
}
#related ol {
margin-top: 0px;
}
#related p {
height: 40px;
width: 645px!important;
width: 600px;
position: relative;
right: -25px;
font-size: 16px;
font-weight: bold;
color: #FFFFFF;
line-height: 30px;
text-indent: 40px;
background-image: url(http://images/related_bg.jpg);
background-repeat: no-repeat;
background-position: right top;
margin: 0;
}
#related li a {
color: #1B2F3A;
text-decoration: none;
font-weight: bold;
}
#related li a:hover {
text-decoration: underline;
}
#flickrrss img {
margin: 3px;
}
The code you've provided is only the CSS which controls the way your blog looks. To add functionality like dates you'll need to modify the wordpress template. Here are some resources to get you going in the right direction:
Learn the basics of wordpress: http://codex.wordpress.org/Getting_Started_with_WordPress#WordPress_for_Beginners
Learn how to modify wordpress
templates:
http://codex.wordpress.org/Stepping_Into_Templates
Format date and time:
http://codex.wordpress.org/Formatting_Date_and_Time
Try starting here. You probably want Miscellaneous > Time/Date functions, half way down the page on the left hand side.
http://codex.wordpress.org/Function_Reference/
EDIT
If you want the date and time of the current post then use the_time();. You will need to add some parameters to this in order to get the correct time and date format. Have a look here for some examples http://codex.wordpress.org/Template_Tags/the_time, and have a look here for a complete list of all parameters to use for date/time formatting http://php.net/manual/en/function.date.php