Nested <div> problem
Posted: 01 June 2006 12:50 PM   [ Ignore ]
Newbie
Rank
Total Posts:  1
Joined  2006-06-01

I have the following html:

<div class="rightnews">
<
h3>Hours</h3>
<
div class="boxL">
Monday<br />Tuesday<br />Wednesday<br />Thursday<br />Friday<br />Saturday<br />Sunday</div>
<
div class="boxR">
9 am 7 pm<br />9 am 7 pm<br />9 am 7 pm<br />9 am 7 pm<br />9 am 5 pm<br />9 am 5 pm<br />Closed</div>
</
div

Essentially, I want to use two “boxes” to align text correctly for displaying the hours of business, with the days on the left and hours on the right.  My problem, the main <div> class “rightnews” has a background color and border and when I view the page in the browser, the background color and border only surround the header statement,

Hours

.  My other <div> are there, and aligned correctly, but can’t really be seen unless I highlight the text with my mouse.

Below is my css:

.rightnews {
font
-familyVerdanaArialHelveticasans-serif;
font-size8pt;
color#FFFFFF;
margin0 0 5px 0;
padding10px 5px 5px 10px;
background#B79B89;
borderdotted thin #00268E;
}

.boxL {
float
left;
text-alignleft;
}

.boxR {
float
right;
text-alignleft;
Profile
 
 
Posted: 06 June 2006 03:46 AM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  2
Joined  2006-06-01

u have to change the color: #FFFFFF; to #000000 in .rightnews css

this is because, the page backgroung color is white (#FFFFFF) and the initilized color is also white (#FFFFFF) so the text cant be seen

just try out this it would work,  reply me if u hve any douts

GAYATHRI V

Profile
 
 
Posted: 20 November 2010 10:27 AM   [ Ignore ]   [ # 2 ]
Newbie
Avatar
Rank
Total Posts:  1
Joined  2010-11-20
gayathri-css - 06 June 2006 03:46 AM

u have to change the color: #FFFFFF; to #000000 in .rightnews css

this is because, the page backgroung color is white (#FFFFFF) and the initilized color is also white (#FFFFFF) so the text cant be seen

just try out this it would work,  reply me if u hve any douts

GAYATHRI V

!!!

Profile
 
 
   
 
 
‹‹ mousover lists      Help with postioning ››