Web Design Forums

Welcome! Please register or log in: Forgot your password? Why register?
You are here: Web Design Forums » Web Design Help » HTML and CSS Help » Text exceeds box width and stays on one line RSS

Text exceeds box width and stays on one line

This thread was started by robbie and has been viewed 264 times, and contains 5 replies, with the last reply made by robbie.
Post Reply
1
View robbie's reputation
robbie, WDF Noob Private message  
Posted June 12 '09 at 04:27 AM
      Posts: 4
Well,

Stayed up way to late last night trying to fix this and it's probably something simple enough I'm doing wrong but basically my text which I'm floating right won't wrap in the div and it's staying on a single line rather than moving to the next one each time it hits the set width of the box.

Here's the CSS code for it


body {font-family:  arial, Helvetica, Tahoma, Verdana, sans-serif; font-size: 11px; color:#fff;margin:0px; background-image:  url();background-repeat:repeat-x;background-color: #23576a; }

#container {width:990px; height:auto; margin-right:auto;margin-left:auto;}

#welcome_header{width:990px; height:114px; background-image:url(images/welcome_header.gif); background-repeat:no-repeat;}
#back_slice {width:990px; height:auto; background-image:url(images/contentback_slice.gif); background-repeat:repeat-y;position:absolute;}
    
    #content_wrap {width:940px; height:auto; margin-right:auto;margin-left:auto;}
        
    #banner{width:940px;height:253px;position:absolute; }
    #left_banner{width:640px; height:253px;background-image:url(Images/festival_banner.jpg); background-repeat:no-repeat;float:left;position:relative}
    #right_banner{width:300px; height:253px;float:right;position:relative;}
    
    #main_content_wrap{width:940px; height:auto;float:left;}
    
    #left_content_wrap{width:638px;height:auto; margin-top:10px;border:1px solid #ededed;float:left;}
    #right_content_wrap{width:292px; height:auto; margin-top:10px;border:1px solid #ededed;float:right; }
    

Any help appreciated, thanks

Advertisement Register for free to hide these ads and participate in discussions!

2
View robbie's reputation
robbie, WDF Noob Private message  
Posted June 12 '09 at 05:41 AM
      Posts: 4
Got this sorted out.

3
345 points at 100% Donor Moderator Repute WDFplus Member
Wired, Admin and WDF Alien Overlord Home page   Private message  
Posted June 13 '09 at 03:20 AM
      Posts: 6,275
What was the solution?
Admin at houseofhelp.com
WDF Resources: The Rules
Founder/Creator/Admin of ZE SECRET PROJECT!

Was another WDF member's post helpful? Click the positive rating button () above the post.

4
View robbie's reputation
robbie, WDF Noob Private message  
Posted June 13 '09 at 05:51 AM
      Posts: 4
Missing P tags in the HTML

5
34 points at 74%
Dorky, Freelance Home page   Private message  
Posted June 13 '09 at 10:49 AM
      Posts: 787
lmao. SWEET. i love it when i do that.
“Imagination is more important than knowledge. For knowledge is limited to all we now know and understand, while imagination embraces the entire world, and all there ever will be to know and understand.” Albert Einstein

6
View robbie's reputation
robbie, WDF Noob Private message  
Posted June 13 '09 at 11:14 AM
      Posts: 4
I don't, but I love when I figure out what I done wrong after hours of pulling my hair out

Post Reply