Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-16-2004, 07:30 PM   PM User | #1
vw98034
Regular Coder

 
vw98034's Avatar
 
Join Date: Feb 2004
Posts: 194
Thanks: 3
Thanked 0 Times in 0 Posts
vw98034 is an unknown quantity at this point
Frustrated on font size

I am battling on a consistency of font size of a banner text for an unexpected long period of time. After I thought this problem was solved, I just found out it is still a problem with different browsers or/and different resolution screen. Since it is on the banner, it is very important as the first impression of the site. Can someone help me out of this frustrated issue.

The problem is that the banner text is too big for the width and pushed on the line sometimes. It is find with Netscape 7.1 and IE 5 on Window 2000, but not with IE on Window XP same resolution.

The following is the code I use:

<div style="position: absolute; left: 0px; top: 0px; width: 70%; padding-left: 6%; padding-top: 2%; color: #A10000; font-weight: bold; font-size: 2.5em;">
banner text
</div>
<div style="z-index: 1; position: absolute; left: 422px; top: 48px; width: 20em; color: #90A9C9; font-size: 1.8em;">
subtitle
</div>


Thanks.
vw98034 is offline   Reply With Quote
Old 02-17-2004, 04:55 AM   PM User | #2
zoobie
Senior Coder

 
Join Date: Jun 2002
Location: ColoRockyz
Posts: 1,642
Thanks: 1
Thanked 0 Times in 0 Posts
zoobie has a little shameless behaviour in the past
You should give us a link...my psychic powers have been drained. NS and other browsers allow the user to resize the text...just another problem I suppose. This is what happens when you try to place text on things. I know this sounds nutz...but have you considered just using a image for your banner...and z-indexed positioned text "above" it for the SE's?
__________________
Zoobie or not Zoobie...That is the problem.
<body onUnload="flush( ! )">
zoobie is offline   Reply With Quote
Old 02-18-2004, 12:08 AM   PM User | #3
vw98034
Regular Coder

 
vw98034's Avatar
 
Join Date: Feb 2004
Posts: 194
Thanks: 3
Thanked 0 Times in 0 Posts
vw98034 is an unknown quantity at this point
Unhappy

I am too shy to give out the link this time.
vw98034 is offline   Reply With Quote
Old 02-18-2004, 12:17 AM   PM User | #4
vw98034
Regular Coder

 
vw98034's Avatar
 
Join Date: Feb 2004
Posts: 194
Thanks: 3
Thanked 0 Times in 0 Posts
vw98034 is an unknown quantity at this point
Con't.

I have tried to have a wider width. It doesn't help.

An image banner is not an option for my case since it is a multilingual site. The text is shown in different languages based on the accepte-language setting in your browser. It needs more work to have various images for different languages.
vw98034 is offline   Reply With Quote
Old 02-18-2004, 02:15 PM   PM User | #5
Roy Sinclair
Senior Coder

 
Join Date: Jun 2002
Location: Wichita
Posts: 3,880
Thanks: 0
Thanked 0 Times in 0 Posts
Roy Sinclair will become famous soon enough
Write a simple example page and host it on one of the multitude of free servers out there. Post that link.
__________________
Check out the Forum Search. It's the short path to getting great results from this forum.
Roy Sinclair is offline   Reply With Quote
Old 02-19-2004, 08:20 PM   PM User | #6
vw98034
Regular Coder

 
vw98034's Avatar
 
Join Date: Feb 2004
Posts: 194
Thanks: 3
Thanked 0 Times in 0 Posts
vw98034 is an unknown quantity at this point
I had a quick check on any free web hosting server suited this purpose. Without a luck, I didn't find any one.

On the other hand, the piece of CSS code works by itself. One can copy it into a html file and see how it works.

I promise I will provide the link of the site once I finish the facelift. That may take a month along with other changes at the site.
vw98034 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 08:29 AM.


Advertisement
Log in to turn off these ads.