container overlaps upon text resize in Firefox

This is a discussion on "container overlaps upon text resize in Firefox" within the Web Page Design section. This forum, and the thread "container overlaps upon text resize in Firefox are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 31st, 2006, 23:04
New Member
Join Date: Jul 2006
Location: sydney
Age: 23
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
container overlaps upon text resize in Firefox

hey guys , i decided to use px for my text size so that it doesnt get resized, however it doesnt get resized in IE only , in Firefox it does get resized when u try to increase/decrease the text size.

But the problem is that when u make the text really big , it goes out of the container its supposed to be in while in Firefox. Also sometimes on IE the same thing happens without resizing the text size and i have to refresh the page to make it go normal. Any way to make it so the #content container doesnt overlap upon resize or any other situation?

please try resizing the text in Firefox and in IE ,from the default page goto roster and back again to News page , u will see that the container is out of place. (the #content div has a red border)

http://t-ek.awardspace.com


my css code:

Code: Select all
body  {background-image:url(images/bg.gif) } 




#maincontainer   { 
      position:absolute; 
      top:0px; 
      left:0px; 
      margin-left:13%; 
      width:780px; 
      border:solid; 
      border-color:green; 
      border-width:0px; 
      height:600px; 
      background-color:#757575; 
      } 
       
#borderleft      { 

      border:solid; 
      border-color:white; 
      border-width:0px; 
      width:16px; 
      background-image:url(images/leftborder.jpg); 
      background-repeat:repeat-y; 
      background-position:left; 
      height:100%; 
       
            } 
             
#bartop    { 
      position:absolute; 
      top:0px; 
      border:solid; 
      border-color:blue; 
      border-width:0px; 
      width:748px; 
      margin-left:16px; 
      height:24px; 
       
       
      } 

#borderright      { 
      position:absolute; 
      border:solid; 
      border-color:white; 
      border-width:0px; 
      width:16px; 
      background-image:url(images/rightborder.jpg); 
      background-repeat:repeat-y; 
      background-position:right; 
      height:100%; 
      top:0px; 
      right:0px; 
       
            } 
             
#logo img    { 
      width:748px; 
      height:152px; 
       
      } 


#logo      { 
       
      position:absolute; 
      top:24px; 
      left:16px; 
      border:solid; 
      border-color:red; 
      border-width:0px; 
      width:748px; 
      margin-top:-3px; 
       
      } 
       
#nav       { 
      position:absolute; 
      top:176px; 
      left:16px; 
      border:solid; 
      border-color:yellow; 
      border-width:0px; 
      height:25px; 
      width:748px; 
      margin-top:-2px; 
      padding-left:1px; 
      } 


#filler1      { 
      position:absolute; 
      left:0px; 
      width:3px; 
      height:25px; 
      display:inline; 
      border:solid; 
      border-color:red; 
      border-width:0px; 
       
      } 


#news      { 
      position:absolute; 
      left:3px; 
      width:93px; 
      height:25px; 
      display:inline; 
       
      } 

#roster      { 
      position:absolute; 
      left:96px; 
      width:78px; 
      height:25px; 
      display:inline; 
    
      } 


#servers      { 
      position:absolute; 
      width:82px; 
      height:25px; 
      display:inline; 
      left:174px; 
      } 

#cs      { 
      position:absolute; 
      width:237px; 
      height:25px; 
      display:inline; 
      left:256px; 
      } 


#matches   { 
      position:absolute; 
      width:80px; 
      height:25px; 
      display:inline; 
      left:493px; 
      } 

#files      { 
      position:absolute; 
      width:76px; 
      height:25px; 
      display:inline; 
      left:573px; 
      border:solid; 
      border-color:red; 
      border-width:0px; 
      } 
       
#links      { 
      position:absolute; 
      width:95px; 
      height:25px; 
      border:solid; 
      border-color:red; 
      border-width:0px; 
      left:649px; 
      display:inline; 
      }       

#barbottom   { 
      position:absolute; 
      left:16px; 
      top:200px; 
      width:748px; 
      border:solid; 
      border-color:red; 
      border-width:0px; 
    
      } 
       
#mcontent      { 
       
      position:absolute; 
      top:216px; 
      bottom:33px; 
      left:16px; 
      width:748px; 
      border:solid; 
      border-color:blue; 
      border-width:0px; 
      background-color:#757575; 

       
      } 
#content         { 
       
      padding-top:10px; 
      position:absolute; 
      bottom:0px; 
      top:0px; 
      border:solid; 
      border-color:red; 
      border-width:1px; 
      width:748px; 
     
       
       
      }    

#barlast   { 
      position:absolute; 
      left:16px; 
      bottom:0px; 
      width:748px; 
       
       
      }    


.textmain   { 
      font-family:Arial,Verdana,"Arial Black","Helvetica Bold",sans-serif; 
      font-weight:bold; 
      font-size:12px; 
      color:white; 
      white-space:pre; 
      text-align:justify; 
      word-spacing:1px; 
      } 
       

       

a:link {border-width:0px}
Reply With Quote

  #2 (permalink)  
Old Jul 31st, 2006, 23:42
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: container overlaps upon text resize in Firefox

Could be wrong but I suspect it's to do with your faulty coding.

You have <p> element(s) wrapped in a <span> element. This is not allowed.

<p> elements can contain <span> elements but not the other way around.
Reply With Quote
  #3 (permalink)  
Old Aug 1st, 2006, 00:34
New Member
Join Date: Jul 2006
Location: sydney
Age: 23
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: container overlaps upon text resize in Firefox

i fixed the <p> tag locations but still the problem exits.

could it be because im using text-wrap: pre ?

im sure its something to do with my #content div and #textmain coding

plz help

Last edited by eksquall; Aug 1st, 2006 at 00:37.
Reply With Quote
  #4 (permalink)  
Old Aug 1st, 2006, 16:25
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,738
Blog Entries: 1
Thanks: 0
Thanked 17 Times in 17 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: container overlaps upon text resize in Firefox

overflow:hidden; not work?
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #5 (permalink)  
Old Aug 1st, 2006, 16:26
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,738
Blog Entries: 1
Thanks: 0
Thanked 17 Times in 17 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: container overlaps upon text resize in Firefox

Woops damn quick post. Overflow hidden will allow the resize, keep the containing divs proportions and auto generate a scroll bar as needed.
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
Reply

Tags
container, overlaps, upon, text, resize, firefox

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
DIV's overspilling container DIV in Firefox Craigj1303 Web Page Design 4 May 16th, 2007 23:46
Container Problem in FireFox asengh Web Page Design 8 Dec 12th, 2006 16:23
Text floating out of the container in FF Sporky Web Page Design 3 Dec 8th, 2006 12:07
Container size difference in Explorer vs. Firefox. Chris Passeno Web Page Design 4 Dec 21st, 2005 14:10
CSS Expanding Border with Text Resize melc26 Web Page Design 1 Aug 3rd, 2005 03:27


All times are GMT. The time now is 20:58.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43