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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Text in a DIV seems to be behind the background
Old 11-20-2004, 07:51 PM Text in a DIV seems to be behind the background
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
Hi all,

Here's a sneak preveiw of my new site layout (Pure CSS/DIV, ASP.NET)

http://www.inoxia.co.uk/dotnet

Slight problem that I just can't figure out... could be a rendering bug in IE?
Under the title, under where the control panel / shipping / privacy links are, there's 2 blue lines separated by a gradient. If you're looking at it in Firefox, you'll see more links (Home, About Us, Contact, etc) and a breadcrumb on top of that. If you're looking in IE, you won't.

Any ideas? If you refresh the page you can sometimes see the text as it's being rendered, which leads me to beleive the text is being drawn first, then the background... but I'm not totally sure.

Here's the code:
HTML Code:
	<div id="ContentLinks">
	<span class="left" id="spnLinks2" style="margin-left: 10px">
	 <a href="index.asp">Inoxia Home</a> |
	 <a href="content/info/about.aspx">About Us</a> |
	 <a href="content/info/contact.aspx">Contact Us</a> |
	 <a href="content/info/faq.aspx"><acronym title="Frequently Asked Questions">FAQ</acronym></a> |
	 <a href="content/about/news.asp">Latest News</a>
	</span>
	<span class="right" id="spnBreadcrumb" style="margin-right: 10px">
	 Inoxia Home
	</span>
	<div class="spacer"></div>
   </div>
And the CSS:
Code:
  
div#ContentLinks {
	background-image: url(../images/links_bg.jpg);
	border-top: 1px solid #0000FF;
	border-bottom: 1px solid #0000FF;
	position: relative;
	top: -1px;
	font-weight: bold;
	color: #333333;
}
.left {
	float: left;
	text-align: left;
}
.right {
	float: right;
	text-align: right;
}
div.spacer {
	clear: both;
}
The left, right and spacer CSS Styles are borrowed from Real World Style's 7-10 Split (http://realworldstyle.com/split.html)
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
 
Register now for full access!
Old 11-21-2004, 08:23 PM
faze1's Avatar
Ultra Talker

Posts: 389
Trades: 0
Hi Minaki,

Your link doesn't direct me to the page, I tried typing the url but that didn't help either. Did you take the page down?

With out seeing the page there are only two things I can think to say. One I hate IE . Two, try adding to the css;
Code:
div#ContentLinks {
background-image: url(../images/links_bg.jpg);
border-top: 1px solid #0000FF;
border-bottom: 1px solid #0000FF;
position: relative;
display: block; /*insist the element in it's enitrity*/
top: -1px;
height: ??px /*the height of your element*/
font-weight: bold;
color: #333333;
}
This hopefully solves your problem. If not, let me see the page and I will try and come up with something else.

Good luck,
__________________
[size=2]
Please login or register to view this content. Registration is FREE
- Webhosting - Focusing on quality service

Last edited by faze1; 11-21-2004 at 08:51 PM..
faze1 is offline
Reply With Quote
View Public Profile Visit faze1's homepage!
 
Old 11-22-2004, 12:47 AM hi
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
Grrr, there isn't anything wrong with IE6. It is great, well sort of. Firefox is better.
Anyway, the links that you mentioned that don't show up are in <SPAN> tags correct? Get rid of them. Until I can see what it is like then I can decide what is the true reason for 1 having <SPAN> tags and 2 not using something else.
__________________

Please login or register to view this content. Registration is FREE
- Tumblog with thoughts, quotes, links, videos, images and my creations.

Please login or register to view this content. Registration is FREE
- The best free web browser.

Please login or register to view this content. Registration is FREE
- Firefox is now Firefail.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 11-22-2004, 06:13 PM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
*growls at web host*
Site's back up now. Adding the height worked fine. Not sure why, the spacer DIV should of sorted that out...
Any idea why it looks shoddy in Opera? It seems to be putting margins or padding or something where there shouldn't be...
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 11-22-2004, 07:02 PM
faze1's Avatar
Ultra Talker

Posts: 389
Trades: 0
Hello,

I'm glad the above helped. As far as I have been able to tell Opera has some default padding on top of about 8px, usually adding padding: 0; to the body tag will deal with this, so I would suggest trying the same to the contentlinks tag. I don't have OPera installed here at work so I can't tell whats going on until I get home, so if this doesn't help let me know and I will try and come up with something else.

Good luck,
__________________
[size=2]
Please login or register to view this content. Registration is FREE
- Webhosting - Focusing on quality service
faze1 is offline
Reply With Quote
View Public Profile Visit faze1's homepage!
 
Old 11-24-2004, 05:13 PM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
Ahhhhhh who's idea in the Oprea development team was it to put default padding on the body element?! For anybody who's interested, or reading this thread in the future wanting to sort a simular problem, add padding: 0px; to the body element.
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 11-24-2004, 09:10 PM
NateDogg's Avatar
Extreme Talker

Posts: 163
Trades: 0
Hey Minaki,

I viewed your page in IE and FireFox and I could NOT see the navbar links in IE. Everything seemed fine in FireFox.
__________________
Nathan


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


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

Please login or register to view this content. Registration is FREE
NateDogg is offline
Reply With Quote
View Public Profile
 
Old 11-25-2004, 09:00 AM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
I havn't uploaded the changes yet... it's still on my test server.
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Reply     « Reply to Text in a DIV seems to be behind the background
 

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 1.08963 seconds with 12 queries