Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pages not being displayed properly across browsers 1

Status
Not open for further replies.

nofx1728

Technical User
Jan 26, 2006
65
US
Here's my link: . It displays properly in Explorer. In opera and Firefox the paragraphs just don't have spaces between them. In Netscape the paragraphs don't have spaces, and some of the styles applied to the <div id="sidebar"> are not displaying properly. Anyone know whats wrong in my css, and how to fix it, so that it displays similar to explorer? Also, the frames in the source from that link are not in my code, bellsouth added that. Layout is controlled by css, this is just a test site.

thanks,

nofx1728
 
Display the paragraphs in a block as described below
Code:
<style type="text/css">
<!--
#text {
    display: block;
}
-->
</style>

<p id="text">
    blah blah blah blah blah blah
</p>

M. Brooks
 
This is your paragraph declaration in css:
Code:
p {
color:#666666;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
margin: auto 40px auto 25px;
}
You're putting auto margins on the top and bottom of the paragraph. I suppose IE doesn't know what to do with that, so it reverts to default values. FF is probably similarly confused but it reverts to 0. If you put a decent margin, like 1em, you should stop seeing the problem.
 
your awesome, it worked perfectly. Thank you very much.

Thanks,

nofx1728
 
Given that two people have given you the answer, it would be nice if you would let us know which solution worked for you and who is awesome. :)
 
[tt]
From nofx1728's profile
-----------------------
Threads Started: 7
Votes Given: 0
[/tt]
Don't hold your breath Vragabond.

-kaht

[small]How spicy do you want your chang sauce?[/small]
[banghead]
 
Sorry, I don't know how to vote, lol. Anyone who responds to me is much appreciates, and awesome :). But I was talking about you Vragabond.

thanks,

nofx1728
 
Click the link that looks like this:

star.gif
Thank Vragabond
for this valuable post!

-kaht

[small]How spicy would you like your chang sauce? Oh man... I have no idea whats goin on right now...[/small]
[banghead]
 
Right on, I'll make sure I do that in the future. Thanks for bringing it up, or else I would have never known about it.

-nofx1728
 
I'll make sure I do that in the future

You could start right now by giving Vragabond a vote [smile]

-kaht

[small]How spicy would you like your chang sauce? Oh man... I have no idea whats goin on right now...[/small]
[banghead]
 
I clicked on the * and it said I did. No clue.

nofx1728
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top