Reply
layout.css troubles
Old 11-15-2006, 09:59 PM layout.css troubles
Average Talker

Posts: 16
Hey All,

I am trying to figure out why my index page keeps putting the background on top of my text. I am working with three files:

default.css, layout.css, and index.html

In my index, I have this part in the code:

Code:
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>hcctech.ca</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="default.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
    @import url("layout.css");
-->
</style>
</head>
Now the background is on top of the text, but I remove the:

Code:
<style type="text/css">
<!--
    @import url("layout.css");
-->
</style>
I can see the text on the index page only.

I am trying to move to a tableless css layout on my Homepage.

Can anyone figure this one out for me, Thanks.

Heeter
__________________


Last edited by Heeter : 11-15-2006 at 10:03 PM.
Heeter is offline
Reply With Quote
View Public Profile Visit Heeter's homepage!
 
When You Register, These Ads Go Away!
     
Old 11-16-2006, 10:49 AM Re: layout.css troubles
Average Talker

Posts: 16
Bump

Sorry for the bump so soon, but I need help,

Thanks,

Heeter
__________________

Heeter is offline
Reply With Quote
View Public Profile Visit Heeter's homepage!
 
Old 11-16-2006, 11:52 AM Re: layout.css troubles
Nahele's Avatar
Extreme Talker

Posts: 197
Are you working with "z-index" values?

if your site is online, you may want to post up a link to your index page
__________________
The worst things in life allow us to appreciate the best things

virtual kudos (a.k.a. talkupation) always welcome where deserved.
Nahele is offline
Reply With Quote
View Public Profile
 
Old 11-16-2006, 12:40 PM Re: layout.css troubles
LadynRed's Avatar
Super Moderator

Posts: 5,973
Location: Tennessee
Yes, this is impossible to debug unless we can see ALL of the code. An on-line link would be easiest for all.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 11-16-2006, 03:11 PM Re: layout.css troubles
Average Talker

Posts: 16
Thanks for responding

The link to my work in progress homepage is : http://www.hcctech.ca/xhtml/homepage.html

Access to the files in question is: www.hcctech.ca/xhtml

My existing homepage is: www.hcctech.ca but my goal to remove all tables from my existing.


Thanks again for responding



Heeter
__________________


Last edited by Heeter : 11-16-2006 at 03:14 PM.
Heeter is offline
Reply With Quote
View Public Profile Visit Heeter's homepage!
 
Old 11-16-2006, 04:02 PM Re: layout.css troubles
LadynRed's Avatar
Super Moderator

Posts: 5,973
Location: Tennessee
Ok... why do you have this ?

<link href="layout.css" rel="stylesheet" type="text/css" style="background-repeat: repeat;" /

#logo h1, #logo h2 {
display: none;
}

No way you're going to see your text with the headers set to be HIDDEN !

and this ??
#label1 b, #label2 b {
display: none;
}

#menu b {
display: none;
}

Your text isn't being covered up, you're HIDING it. Take out all that 'display:none' and your text appears. Perhaps you misunderstood the meaning of display: none ? Once your text shows up, you're going to have to adjust the placement.

I would also suggest:
change your menu id's to classes, makes them re-usable.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club

Last edited by LadynRed : 11-16-2006 at 04:05 PM.
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 11-16-2006, 04:08 PM Re: layout.css troubles
Nahele's Avatar
Extreme Talker

Posts: 197
I'm assuming you are talking about the text that should be at each "title" divistions, menu text and logo text...if so, your background is not covering the text, you are hiding it

Code:
.title b {
	display: none;
}
Code:
#menu b {
	display: none;
}
Code:
#logo h1, #logo h2 {
	display: none;
}
__________________
The worst things in life allow us to appreciate the best things

virtual kudos (a.k.a. talkupation) always welcome where deserved.
Nahele is offline
Reply With Quote
View Public Profile
 
Old 11-16-2006, 04:09 PM Re: layout.css troubles
Nahele's Avatar
Extreme Talker

Posts: 197
oh, ya beat me to it!
__________________
The worst things in life allow us to appreciate the best things

virtual kudos (a.k.a. talkupation) always welcome where deserved.
Nahele is offline
Reply With Quote
View Public Profile
 
Old 11-16-2006, 05:36 PM Re: layout.css troubles
Average Talker

Posts: 16
YAHOO, AWESOME!!!!!

Thanks a million, to both of you!!!

I see Text!!!

If you don't mind, could you please tell me about what you meant about Menu ID to classes concerning my situation.

Again, Thanks, been beating my head against the wall since trying to move to table-less setup.



Heeter
__________________

Heeter is offline
Reply With Quote
View Public Profile Visit Heeter's homepage!
 
Old 11-16-2006, 05:55 PM Re: layout.css troubles
Nahele's Avatar
Extreme Talker

Posts: 197
Quote:
Originally Posted by Heeter View Post
If you don't mind, could you please tell me about what you meant about Menu ID to classes concerning my situation.
Heeter
your background image for all menu items (images/homepage04.jpg - images/homepage10.jpg) appear to be the same image so change each of these entries in html to class="menu_item" or whatever

and

replace

Code:
#menu1 { background: url(images/homepage04.jpg) no-repeat left top; }
#menu2 { background: url(images/homepage05.jpg) no-repeat left top; }
#menu3 { background: url(images/homepage06.jpg) no-repeat left top; }
#menu4 { background: url(images/homepage07.jpg) no-repeat left top; }
#menu5 { background: url(images/homepage08.jpg) no-repeat left top; }
#menu6 { background: url(images/homepage09.jpg) no-repeat left top; }
#menu7 { background: url(images/homepage10.jpg) no-repeat left top; }
with

Code:
.menu_item {background: url(images/homepage04.jpg) no-repeat left top;}
then remove images 5-10
__________________
The worst things in life allow us to appreciate the best things

virtual kudos (a.k.a. talkupation) always welcome where deserved.
Nahele is offline
Reply With Quote
View Public Profile
 
Old 11-16-2006, 06:07 PM Re: layout.css troubles
Average Talker

Posts: 16
But by doing that, wouldn't it be just putting one menu item across the top ?



Thanks, Nahele



Heeter
__________________

Heeter is offline
Reply With Quote
View Public Profile Visit Heeter's homepage!
 
Old 11-16-2006, 06:44 PM Re: layout.css troubles
Nahele's Avatar
Extreme Talker

Posts: 197
No, you see the css for .menu_item will apply to every instance where class="menu_item", so if you have...

HTML Code:
<div id="menu">
	<ul>
		<li><a href="#" class="menu_item" accesskey="1" title=""><b>Home</b></a></li>
		<li><a href="#" class="menu_item" accesskey="2" title=""><b>Products</b></a></li>
		<li><a href="#" class="menu_item" accesskey="3" title=""><b>Services</b></a></li>
		<li><a href="#" class="menu_item" accesskey="4" title=""><b>News</b></a></li>
		<li><a href="#" class="menu_item" accesskey="5" title=""><b>Support</b></a></li>
		<li><a href="#" class="menu_item" accesskey="6" title=""><b>About Us</b></a></li>
		<li><a href="#" class="menu_item" accesskey="7" title=""><b>Contact Us</b></a></li>

	</ul>
</div>
then each occurance of class="menu_item" will have the same settings...
__________________
The worst things in life allow us to appreciate the best things

virtual kudos (a.k.a. talkupation) always welcome where deserved.
Nahele is offline
Reply With Quote
View Public Profile
 
Old 11-16-2006, 08:18 PM Re: layout.css troubles
LadynRed's Avatar
Super Moderator

Posts: 5,973
Location: Tennessee
Hey Nahele, you and I must have been posting at about the same time.. lol. GMTA !!
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 11-16-2006, 08:20 PM Re: layout.css troubles
Average Talker

Posts: 16
Your all geniuses!!!!!


Thanks, Nahele

Thanks to you to LadynRed.

Heeter
__________________


Last edited by Heeter : 11-16-2006 at 08:21 PM.
Heeter is offline
Reply With Quote
View Public Profile Visit Heeter's homepage!
 
Old 11-16-2006, 08:32 PM Re: layout.css troubles
Nahele's Avatar
Extreme Talker

Posts: 197
Quote:
Originally Posted by LadynRed View Post
Hey Nahele, you and I must have been posting at about the same time.. lol. GMTA !!
Haha, well I beat you this time.

Glad we could help, Let us know if you need any more help.
__________________
The worst things in life allow us to appreciate the best things

virtual kudos (a.k.a. talkupation) always welcome where deserved.
Nahele is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to layout.css troubles
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.18132 seconds with 13 queries