[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 05-16-2007, 04:53 PM   #1 (permalink)
Senior Member
 
Join Date: May 2005
Location: Ontario Canada
Posts: 2,928
1,675.13 NP$ (Donate)

unknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to behold


CSS divs help needed

Edit: Okay i figured some of the stuff out
now the only problem i am having is the width
the div can overflow..i dont want that happen....as u can see...stufff and the text on the main body go beyond there sections

Hey
I took the suggestion of the fellow np'ers and decided to use DIVS instead of tables and i am having some trouble
i have managed to create a header and a footer...however the Content area and navigation area is giving me headaches

Here is the url: http://www.RoundPi.com/vvd
as you can see...the text "stuff" appears somewhere in the middle [horizontally] and i want it to be at the top..but when i add "Padding" in css...the text moves up..but the buttons on the navbar don't work!
also..if i put a long string..it breaks the div and goes outside of the layout!

and then there is navigation area....same problem...it breaks out of the div width and the buttons don't work when i add it
Thanks

Last edited by unknowngiver; 05-16-2007 at 05:33 PM.
unknowngiver is offline  
Old 05-16-2007, 06:37 PM   #2 (permalink)
NamePros Regular
 
DylanButler's Avatar
 
Join Date: Jan 2006
Location: San Diego, CA
Posts: 704
0.00 NP$ (Donate)

DylanButler is a splendid one to beholdDylanButler is a splendid one to beholdDylanButler is a splendid one to beholdDylanButler is a splendid one to beholdDylanButler is a splendid one to beholdDylanButler is a splendid one to beholdDylanButler is a splendid one to behold


OK in firefox, if you make a string thats longer than the width of the element it will overflow automatically. There's nothing you can do about that, besides overflow:hidden, which will just hide the parts of the string that extend beyond the box outline.

IE6- on the other hand, will allow the box to stretch, breaking layouts in many cases and causing unwieldy results. This is the incorrect behavior. A fix for this is to use word-wrap:break-word on the container, which will truncate a word to a new line regardless of whitespace if it risks expanding the container.
__________________
:great: -Dylan Butler

EXAMP - San Diego Web Design
DylanButler is offline  
Old 05-16-2007, 07:23 PM   #3 (permalink)
Senior Member
 
Join Date: May 2005
Location: Ontario Canada
Posts: 2,928
1,675.13 NP$ (Donate)

unknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to behold


hm
so what do i do? lol
i tried adding:
Code:
word-wrap: break-word;
in css..for the body and right column but dont see any change
unknowngiver is offline  
Old 05-16-2007, 07:35 PM   #4 (permalink)
NamePros Regular
 
DylanButler's Avatar
 
Join Date: Jan 2006
Location: San Diego, CA
Posts: 704
0.00 NP$ (Donate)

DylanButler is a splendid one to beholdDylanButler is a splendid one to beholdDylanButler is a splendid one to beholdDylanButler is a splendid one to beholdDylanButler is a splendid one to beholdDylanButler is a splendid one to beholdDylanButler is a splendid one to behold


Quote:
Originally Posted by unknowngiver
hm
so what do i do? lol
i tried adding:
Code:
word-wrap: break-word;
in css..for the body and right column but dont see any change
you apply it to the column in which you dont want to expand.. and it only affects IE6 (and below)
__________________
:great: -Dylan Butler

EXAMP - San Diego Web Design
DylanButler is offline  
Old 05-16-2007, 07:44 PM   #5 (permalink)
Senior Member
 
Join Date: May 2005
Location: Ontario Canada
Posts: 2,928
1,675.13 NP$ (Donate)

unknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to behold


so i cant do anything abt firefox?
unknowngiver is offline  
Old 05-16-2007, 08:08 PM   #6 (permalink)
NamePros Regular
 
DylanButler's Avatar
 
Join Date: Jan 2006
Location: San Diego, CA
Posts: 704
0.00 NP$ (Donate)

DylanButler is a splendid one to beholdDylanButler is a splendid one to beholdDylanButler is a splendid one to beholdDylanButler is a splendid one to beholdDylanButler is a splendid one to beholdDylanButler is a splendid one to beholdDylanButler is a splendid one to behold


Quote:
Originally Posted by DylanButler
in firefox, if you make a string thats longer than the width of the element it will overflow automatically. There's nothing you can do about that, besides overflow:hidden, which will just hide the parts of the string that extend beyond the box outline.
You can read more about overflow here:

http://www.w3schools.com/css/pr_pos_overflow.asp
__________________
:great: -Dylan Butler

EXAMP - San Diego Web Design
DylanButler is offline  
Old 05-16-2007, 09:12 PM   #7 (permalink)
Senior Member
 
Join Date: May 2005
Location: Ontario Canada
Posts: 2,928
1,675.13 NP$ (Donate)

unknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to behold


ew scrollbars make it look so ugly ew ew
i wish there was another way FF i hate u
unknowngiver is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 04:17 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85