469,904 Members | 2,143 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,904 developers. It's quick & easy.

text formatting problems FF and IE

hi, im having a little problem with my text dropping outside my div
container in FF. It formats fine in IE and i just cant seem to crack
it it. Im using external style sheets. Here is my code:

<----CSS----->
#footer {
position:absolute;
width:819px;
height:20px;
z-index:7;
left: 0px;
top: 707px;
background-color: #003366;
padding-left:10px;
padding-top:0px;
}
#footerText {
position:absolute;
top:2px;
left:5px;
}

<----XHTML----->
<div id="footer">
<div id="footerText">
<h2>CALL US FOR GREAT RATES AND INFORMATION ON ALL OUR SERVICES...</
h2>
</div>
</div>

Any suggestion would be greatly appreciated. I have tried nesting the
text directly in the #footer div but i get the same problem.

May 9 '07 #1
4 1589
Mr******@gmail.com wrote:
hi, im having a little problem with my text dropping outside my div
container in FF. It formats fine in IE and i just cant seem to crack
it it. Im using external style sheets. Here is my code:
A URL would be better.
<----CSS----->
#footer {
Your text spills out because it is too tall for your height.
height:20px; <--- this
Use em units instead.
<----XHTML----- <-- Use HTML 4.01 Strict instead
<div id="footer">
<div id="footerText">
<h2>CALL US FOR GREAT RATES AND INFORMATION ON ALL OUR SERVICES...</
h2>
</div>
</div>
That does not look like heading text. ( <h2)
Write something in mixed case and use a <p>aragraph.
Any suggestion would be greatly appreciated. I have tried nesting the
text directly in the #footer div but i get the same problem.
You don't need the extra "footertext". Post the URL when you think you
have it sorted.

--
-bts
-Motorcycles defy gravity; cars just suck
May 9 '07 #2
thanks for the advice :-)

I have managed to sort it. One thing though... why do u recommend
using html 4.01 opposed to XHTML. surely using the most up to date
markup is recommended? that way our sites are forward compatible...

And your right about the text, it shouldnt be heading text, i have
just been playing around with a few different combinations.

unfortunatly i cannot post the url due to contractual reasons.

thanks again...

May 9 '07 #3
Mr******@gmail.com wrote:
thanks for the advice :-)

I have managed to sort it. One thing though... why do u recommend
using html 4.01 opposed to XHTML. surely using the most up to date
markup is recommended? that way our sites are forward compatible...
For one, the most popular browser-like operating system component
(Internet Exploder) can't read properly-served XHTML. Not even the
latest version.
And your right about the text, it shouldnt be heading text, i have
just been playing around with a few different combinations.

unfortunatly i cannot post the url due to contractual reasons.
So then make up a sample illustrative page, and post it on a free
server. Does your ISP give you free space? Many do.

--
-bts
-Motorcycles defy gravity; cars just suck
May 9 '07 #4
On May 9, 1:16 pm, "Beauregard T. Shagnasty"
<a.nony.m...@example.invalidwrote:
MrASt...@gmail.com wrote:
thanks for the advice :-)
I have managed to sort it. One thing though... why do u recommend
using html 4.01 opposed to XHTML. surely using the most up to date
markup is recommended? that way our sites are forward compatible...

For one, the most popular browser-like operating system component
(Internet Exploder) can't read properly-served XHTML. Not even the
latest version.
Oh i see, i didnt know that. i have read many different things
referencing the subject and its difficult to know which route to take.
the whole browser compatability issue is a pain im sure you will
agree :-)
>
And your right about the text, it shouldnt be heading text, i have
just been playing around with a few different combinations.
unfortunatly i cannot post the url due to contractual reasons.

So then make up a sample illustrative page, and post it on a free
server. Does your ISP give you free space? Many do.
Yes i do have free space, il bear that in mind for future, i know it
would make it much easier.
>
--
-bts
-Motorcycles defy gravity; cars just suck

May 9 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by shoo | last post: by
1 post views Thread by Pete from Boston | last post: by
6 posts views Thread by shoo | last post: by
bartonc
1 post views Thread by bartonc | last post: by
3 posts views Thread by =?Utf-8?B?b24tbGluZSBqb3VybmFsIGVkaXRvcg==?= | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.