Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



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

Posts: 16
Trades: 0
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
__________________

Please login or register to view this content. Registration is FREE

Last edited by Heeter; 11-15-2006 at 11:03 PM..
Heeter is offline
Reply With Quote
View Public Profile Visit Heeter's homepage!
 
 
Register now for full access!
Old 11-16-2006, 11:49 AM Re: layout.css troubles
Average Talker

Posts: 16
Trades: 0
Bump

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

Thanks,

Heeter
__________________

Please login or register to view this content. Registration is FREE
Heeter is offline
Reply With Quote
View Public Profile Visit Heeter's homepage!
 
Old 11-16-2006, 12:52 PM Re: layout.css troubles
Nahele's Avatar
Extreme Talker

Posts: 204
Trades: 1
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, 01:40 PM Re: layout.css troubles
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
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 !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 11-16-2006, 04:11 PM Re: layout.css troubles
Average Talker

Posts: 16
Trades: 0
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
__________________

Please login or register to view this content. Registration is FREE

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

Posts: 10,016
Location: Tennessee
Trades: 0
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 !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


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

Posts: 204
Trades: 1
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, 05:09 PM Re: layout.css troubles
Nahele's Avatar
Extreme Talker

Posts: 204
Trades: 1
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, 06:36 PM Re: layout.css troubles
Average Talker

Posts: 16
Trades: 0
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
__________________

Please login or register to view this content. Registration is FREE
Heeter is offline
Reply With Quote
View Public Profile Visit Heeter's homepage!
 
Old 11-16-2006, 06:55 PM Re: layout.css troubles
Nahele's Avatar
Extreme Talker

Posts: 204
Trades: 1
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, 07:07 PM Re: layout.css troubles
Average Talker

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



Thanks, Nahele



Heeter
__________________

Please login or register to view this content. Registration is FREE
Heeter is offline
Reply With Quote
View Public Profile Visit Heeter's homepage!
 
Old 11-16-2006, 07:44 PM Re: layout.css troubles
Nahele's Avatar
Extreme Talker

Posts: 204
Trades: 1
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, 09:18 PM Re: layout.css troubles
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Hey Nahele, you and I must have been posting at about the same time.. lol. GMTA !!
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 11-16-2006, 09:20 PM Re: layout.css troubles
Average Talker

Posts: 16
Trades: 0
Your all geniuses!!!!!


Thanks, Nahele

Thanks to you to LadynRed.

Heeter
__________________

Please login or register to view this content. Registration is FREE

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

Posts: 204
Trades: 1
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 Search this Thread
Search this Thread:

Advanced Search

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

BB 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.45639 seconds with 12 queries