Text moving outside div

Hello again,
Firstly, I would like to thank you for help once again. I've got another problem with Div's and I cannot find out what I'm doing wrong, on the live view everything looks fine but in the browser the text is outside the frame? Plese see pictures below:

In addition to what David already said about   APDivs, your images for the 3 middle boxes need to be sliced and re-assembled in DW to form flexible containers.
Have a look at this basic  demo:
http://alt-web.com/DEMOS/Image-slices-in-a-CSS-based-layout.shtml
See also, taking  a Fireworks (or Photoshop) comp to a CSS based layout in DW
http://www.adobe.com/devnet/fireworks/articles/web_standards_layouts_pt1.html
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media  Specialists
www.alt-web.com/
www.twitter.com/altweb
www.alt-web.blogspot.com

Similar Messages

  • Text running outside div

    I am testing out a layout and am having trouble containing
    text within
    a DIV. I thought i have done everything correctly but when I
    continue
    typing a line into #text-dash, it flows out horizontally into
    the
    container DIV.
    I have looked closely at the HTML and CSS from a template
    supplied
    with dreamweaver where the text does not flow outside the DIV
    ("Sidebar") into the container and I can't really see any
    substantial
    differences in the code but I must be missing something. Can
    someone
    please take a look and give me a hand with this?
    Thanks
    Mike
    I am including the code from my test page, followed by the
    code from
    the dreamweaver template
    MY CODE:
    <style type="text/css">
    <!--
    body {
    margin: 0px;
    padding: 0px;
    #container {
    background-color: #CC9966;
    margin: 50px;
    width: 600px;
    float: left;
    #test-dash {
    background-image: url(img/nocities.jpg);
    background-repeat: repeat-y;
    width: 134px;
    padding-top: 4px;
    padding-right: 20px;
    padding-bottom: 0px;
    padding-left: 20px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    float: left;
    -->
    </style>
    </head>
    <body>
    <div id="container">
    <div id="test-dash">
    <p>jkjkjjk jkjkjjj
    oiiiillplll;kjkjkjkjkjkjkjkkjkjkjkjkjk</p>
    <p>iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii</
    p>
    <p>;;oioioioioioioioioioi;;;;jjj9iuiiii0-
    iiii0i0i0i0i0i0iiiiioioioioioioioioioioioioioioioi</p>
    <p>iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii</
    p>
    <p> </p>
    <p>kjkkkkkkkkkkkkkkkkkkkkkkkk</p>
    <p> </p>
    <p>jkjkjjkjkjkjkjkkkkkkkkk,</p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p>vmmbvvvvbvbvvbvbvbvbvbvbvbvbv</p>
    </div>
    </div>
    </body>
    </html>
    FROM THE TEMPLATE:
    body {
    font: 100% Verdana, Arial, Helvetica, sans-serif;
    background: #666666;
    margin: 0; /* it's good practice to zero the margin and
    padding of
    the body element to account for differing browser defaults */
    padding: 0;
    text-align: center; /* this centers the container in IE 5*
    browsers. The text is then set to the left aligned default in
    the
    #container selector */
    color: #000000;
    .twoColFixLt #container {
    width: 780px; /* using 20px less than a full 800px width
    allows
    for browser chrome and avoids a horizontal scroll bar */
    background: #FFFFFF;
    margin: 0 auto; /* the auto margins (in conjunction with a
    width)
    center the page */
    border: 1px solid #000000;
    text-align: left; /* this overrides the text-align: center
    on the
    body element. */
    .twoColFixLt #sidebar1 {
    float: left; /* since this element is floated, a width must
    be
    given */
    width: 200px; /* the actual width of this div, in standards-
    compliant browsers, or standards mode in Internet Explorer
    will
    include the padding and border in addition to the width */
    background: #EBEBEB; /* the background color will be
    displayed for
    the length of the content in the column, but no further */
    padding: 15px 10px 15px 20px;
    .fltrt { /* this class can be used to float an element right
    in your
    page. The floated element must precede the element it should
    be next
    to on the page. */
    float: right;
    margin-left: 20px;
    .fltlft { /* this class can be used to float an element left
    in your
    page */
    float: left;
    margin-right: 10px;
    .clearfloat { /* this class should be placed on a div or
    break element
    and should be the final element before the close of a
    container that
    should fully contain a float */
    clear:both;
    height:0;
    font-size: 1px;
    line-height: 0px;
    -->
    </style>
    <!--[if IE 5]>
    <style type="text/css">
    /* place css box model fixes for IE 5* in this conditional
    comment */
    .twoColFixLt #sidebar1 { width: 230px; }
    </style>
    <![endif]--><!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional
    comment
    .twoColFixLt #sidebar1 { padding-top: 30px; }
    .twoColFixLt #mainContent { zoom: 1; }
    /* the above proprietary zoom property gives IE the hasLayout
    it needs
    to avoid several bugs */
    </style>
    <![endif]--></head>
    <body class="twoColFixLt">
    <div id="container">
    <div id="sidebar1">
    <h3>Sidebar1 Content</h3>
    <p>The background color on this div will only show for
    the length
    of the content. If you'd like a dividing line instead, place
    a border
    on the left side of the #mainContent div if it will always
    contain
    more content. </p>
    <p>Donec eu mi sed turpis feugiat feugiat. Integer
    turpis arcu,
    pellentesque eget, kkkjjjkcursus et, fermentum ut,
    s;;;;;;;;;;;;apien. Fusce metus mi, eleifend sollicitudin,
    molestie
    id, varius et, nibh. Donec nec libero.</p>
    <!-- end #sidebar1 --></div>
    <!-- This clearing element should immediately follow the
    #mainContent div in order to force the #container div to
    contain all
    child floats -->
    <br class="clearfloat" />
    <!-- end #container --></div>
    </body>
    </html>

    Try putting spaces into your test text - if it doesn't make a
    difference,
    please upload and post the URL, it's easier to check your
    code.
    Jo
    "blueman2" <[email protected]> wrote in
    message
    news:[email protected]...
    >I am testing out a layout and am having trouble
    containing text within
    > a DIV. I thought i have done everything correctly but
    when I continue
    > typing a line into #text-dash, it flows out horizontally
    into the
    > container DIV.
    >
    > I have looked closely at the HTML and CSS from a
    template supplied
    > with dreamweaver where the text does not flow outside
    the DIV
    > ("Sidebar") into the container and I can't really see
    any substantial
    > differences in the code but I must be missing something.
    Can someone
    > please take a look and give me a hand with this?
    >
    > Thanks
    > Mike
    >
    > I am including the code from my test page, followed by
    the code from
    > the dreamweaver template
    >
    > MY CODE:
    >
    > <style type="text/css">
    > <!--
    > body {
    > margin: 0px;
    > padding: 0px;
    > }
    >
    > #container {
    > background-color: #CC9966;
    > margin: 50px;
    > width: 600px;
    > float: left;
    > }
    >
    > #test-dash {
    > background-image: url(img/nocities.jpg);
    > background-repeat: repeat-y;
    > width: 134px;
    > padding-top: 4px;
    > padding-right: 20px;
    > padding-bottom: 0px;
    > padding-left: 20px;
    > font-family: Verdana, Arial, Helvetica, sans-serif;
    > font-size: 10px;
    > float: left;
    > }
    >
    > -->
    > </style>
    > </head>
    >
    > <body>
    > <div id="container">
    > <div id="test-dash">
    > <p>jkjkjjk jkjkjjj
    oiiiillplll;kjkjkjkjkjkjkjkkjkjkjkjkjk</p>
    >
    <p>iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii</
    > p>
    > <p>;;oioioioioioioioioioi;;;;jjj9iuiiii0-
    >
    iiii0i0i0i0i0i0iiiiioioioioioioioioioioioioioioioi</p>
    >
    >
    <p>iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii</
    > p>
    > <p> </p>
    > <p>kjkkkkkkkkkkkkkkkkkkkkkkkk</p>
    > <p> </p>
    > <p>jkjkjjkjkjkjkjkkkkkkkkk,</p>
    > <p> </p>
    > <p> </p>
    > <p> </p>
    > <p> </p>
    > <p> </p>
    > <p> </p>
    > <p>vmmbvvvvbvbvvbvbvbvbvbvbvbvbv</p>
    > </div>
    > </div>
    > </body>
    > </html>
    >
    > FROM THE TEMPLATE:
    >
    > body {
    > font: 100% Verdana, Arial, Helvetica, sans-serif;
    > background: #666666;
    > margin: 0; /* it's good practice to zero the margin and
    padding of
    > the body element to account for differing browser
    defaults */
    > padding: 0;
    > text-align: center; /* this centers the container in IE
    5*
    > browsers. The text is then set to the left aligned
    default in the
    > #container selector */
    > color: #000000;
    > }
    >
    > .twoColFixLt #container {
    > width: 780px; /* using 20px less than a full 800px width
    allows
    > for browser chrome and avoids a horizontal scroll bar */
    > background: #FFFFFF;
    > margin: 0 auto; /* the auto margins (in conjunction with
    a width)
    > center the page */
    > border: 1px solid #000000;
    > text-align: left; /* this overrides the text-align:
    center on the
    > body element. */
    > }
    >
    > .twoColFixLt #sidebar1 {
    > float: left; /* since this element is floated, a width
    must be
    > given */
    > width: 200px; /* the actual width of this div, in
    standards-
    > compliant browsers, or standards mode in Internet
    Explorer will
    > include the padding and border in addition to the width
    > background: #EBEBEB; /* the background color will be
    displayed for
    > the length of the content in the column, but no further
    > padding: 15px 10px 15px 20px;
    > }
    >
    > .fltrt { /* this class can be used to float an element
    right in your
    > page. The floated element must precede the element it
    should be next
    > to on the page. */
    > float: right;
    > margin-left: 20px;
    > }
    >
    > .fltlft { /* this class can be used to float an element
    left in your
    > page */
    > float: left;
    > margin-right: 10px;
    > }
    >
    > .clearfloat { /* this class should be placed on a div or
    break element
    > and should be the final element before the close of a
    container that
    > should fully contain a float */
    > clear:both;
    > height:0;
    > font-size: 1px;
    > line-height: 0px;
    > }
    >
    > -->
    > </style>
    > <!--[if IE 5]>
    > <style type="text/css">
    > /* place css box model fixes for IE 5* in this
    conditional comment */
    > .twoColFixLt #sidebar1 { width: 230px; }
    > </style>
    > <![endif]--><!--[if IE]>
    > <style type="text/css">
    > /* place css fixes for all versions of IE in this
    conditional comment
    > */
    > .twoColFixLt #sidebar1 { padding-top: 30px; }
    > .twoColFixLt #mainContent { zoom: 1; }
    > /* the above proprietary zoom property gives IE the
    hasLayout it needs
    > to avoid several bugs */
    > </style>
    > <![endif]--></head>
    >
    > <body class="twoColFixLt">
    >
    > <div id="container">
    > <div id="sidebar1">
    > <h3>Sidebar1 Content</h3>
    > <p>The background color on this div will only show
    for the length
    > of the content. If you'd like a dividing line instead,
    place a border
    > on the left side of the #mainContent div if it will
    always contain
    > more content. </p>
    > <p>Donec eu mi sed turpis feugiat feugiat. Integer
    turpis arcu,
    > pellentesque eget, kkkjjjkcursus et, fermentum ut,
    > s;;;;;;;;;;;;apien. Fusce metus mi, eleifend
    sollicitudin, molestie
    > id, varius et, nibh. Donec nec libero.</p>
    > <!-- end #sidebar1 --></div>
    > <!-- This clearing element should immediately follow
    the
    > #mainContent div in order to force the #container div to
    contain all
    > child floats -->
    > <br class="clearfloat" />
    > <!-- end #container --></div>
    > </body>
    > </html>
    >

  • Weather widget text moved UP

    I noticed recently but only really investigated today. The text on my weather widget has all moved up about 5-10 pixels from where it should be. The temperature listing is now sticking about 5 pixels outside and above the background. It looks like the same font and I haven't gotten rid of any fonts lately. I don't know if this is related to 10.4.5 but I noticed it around the time of the upgrade. Any ideas for troubleshooting? Very strange issue.

    Yes i have logged out, restarted, refreshed the widget. It's not just the weather widget now. I see that the address book widget is different, my iCal calendar widget has its text moved up, and goodness knows which others. I orignally asked this question on another forum and others reported having the same problems. I wonder if copying the widget from a computer not experiencing this would make a difference. It's really just the text.
    You know how when the weather widget is loading the temperature has the - - where the numbers are about to appear... those are in the correct position. As soon as the numbers and other text loads it's significantly higher than those - - would suggest.

  • Text moving when opening a pdf in illustrator

    I opened 2 separate hi res pdfs (the front and back of a postcard) in illustrator 5.1. The type on both sides had been outlined and we just relinked the background image on both sides after we did some color adjustments to it. The only type on the front was the name of the company and the headline. Both were white type in separate magenta bars. The type was centered both horizontally and vertically in each bar.
    When I opened the front, the headline text moved from being centered horizontally on the pdf to EXACTLY flush right with the company name. There were no problems with the text moving on the back side.
    We have been receving files from this client for several years and always make color adjustments due to the uncoated paper stock we print on and have never encountered this before. The original files that the supplied pdfs were made from were also created in illustrator 5.
    Is this a known issue? If not, is it acrobat or illustrator problem.

    Was the original PDF created in Illustrator? To find out, open the PDF in Acrobat and go to File> Properties, it should show you what program created the PDF. Illustrator is not a universal PDF editor. A safer work flow would be to use Edit Object in Acrobat to make your color corrections. If you decide to use Illustrator, go to Select> All text objects, I suspect there are some un-outlined and un-embedded type elements.
    If the fonts are properly embedded, there is almost no reason to outline the type.

  • BC product catalog stays outside div container

    BC  Ecommerce catalog content strays outside div container.
    Otherwise BC modules are looking good.
    Tried every kind of css adjustment but no luck yet.
    What do you think?
    Please Help
    Thanks, WillzShire
    https://firstnightvirginia.worldsecuresystems.com/wristbands

    looks like the class .container in bootstrap.css line #5401 is setting the width of your layout to 1170px. Which is over riding an eariler setting for same class up on line #202 in bootstrap.css. Since your table is set to 100% of it's overall container you are getting the overhang. if you change that setting to 940px (which is probably what you wanted anyway), the products should be within site layout.

  • Text moved when pdf is optimized

    I am having a problem with text moving so that some letters overlap and others are spaced far apart when I optimize a pdf using Acrobat XI Pro on a Macbook Pro. The text is Times New Roman font.  What can I do to fix this?

    Hey Susan,
    Could you please let me know if you are running the latest patch of Acrobat XI i.e. 11.0.10
    Does this happen with any particular PDF that you try to optimize?
    Try using any other font in the PDF and then check.
    Let me know.
    Regards,
    Anubha

  • Adding text to a div

    How do you add text to a div that has a menu bar in the bottom left corner? In other words how do you add text above the menu bar?

    <div>
         <p>test here</p> <-- paragraph
         <ul id="menu"> <--- your menubar
         </ul>
    </div>
    That?

  • Dreamweaver CC crashes when moving a DIV field with the keyboard arrows.

    I'm really fond of the new Dreamweaver CC, but on some occasions, it crashes when moving a DIV field with the keyboard arrows, for example, to move it two or three pixels.
    This is happening on a recent pc (i5 / 16Gb ram / Intel SSD / Bootcamped Windows 8 x64)
    F12 is also really slow when publishing via Chrome. Firefox or Internet Explorer is faster.
    Is there a fix for these issues?
    Thanks,
    D

    Apart from the FluidGrid Layouts feature, DW is not a click and drag app like Photoshop or Muse.   You should be using the CSS panels to align elements with floats, margins and padding.
    Keep Chrome open and refresh browser (F5).
    Nancy O.

  • How can I create a vertical scroll for text in a 'div' in CSS Dreamweaver?

    Hi there,
    I need to flow a lot of text into a CSS div. However, I don't want a big long page as it will look ugly and be inconsistent with the other pages in the site.
    I need to be able to put in a vertical scroll directly in the div containing the text (not on the whole page) so the user can scroll the text down without moving down the whole page.
    Is there a way for me to do this?
    I'm a beginner to CSS so a step by step for dummies approach would be most helpful.
    Thanks in advance for any help!

    use the overflow:scroll property:
    http://www.w3schools.com/Css/pr_pos_overflow.asp

  • Center text vertically in DIV.

    I need to center the text vertically in the div at the bottom
    of this page. How do I accomplish this? I searched this forum, but
    couldn't find anything on it.
    http://www.liquidfirefishing.com/ocmc

    It does not. It's specific to table cells, or things with the
    table-cell
    display style.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "kiusau" <[email protected]> wrote in
    message
    news:gnesja$osr$[email protected]..
    >
    quote:
    I need to center the text vertically in the div at the bottom
    of this
    > page.
    > How do I accomplish this?
    >
    > Create a single cell table inside the <div> tag
    and apply vertical
    > alignment
    > to the <tr> tag. I do not know, if vertical
    alignment works with the <p>
    > tag.
    >
    > Roddy
    >

  • How to edit the code of a text inside a div ?

    Hi! I need your help! =)
    How can I access the code of a DIV inside the Animate? I want to put some words in bold, and some other text formats.
    Thanks.

    Antonio,
    Sadly, there is no way to do it directly. Even in plain HTML application it is impossible to print text of UI control (<textarea> in this case).
    So you have to open new browser window containing entered text and let user print text himself. Or invoke window.print() on document load event.
    VS

  • No text reception outside the US

    I can send and receive text messages in the USA, and outside the, however I am not able to receive text messages from outside the US. Are there any suggestions? Thank you.

    Contact your carrier, AT&T. Either you don't have international texting on your plan or it is not provisioned correctly.

  • Text extends beyond div

    I have a page with one div tag with an id="wrapper" the width
    of the div is 500px the text exceeds the width of the div - any
    ideas? thks jim

    .oO(rockhiker)
    >Here is the css:
    >
    >#wrapper {
    > width: 500px;
    > border: thin solid #999;
    > padding-right:4px;
    >}
    No problem there.
    And the rest of the CSS? Maybe some 'white-space: nowrap'
    somewhere?
    A URL would really help.
    Micha

  • How do you position text in a div tag to be in the center vertically?

    Can someone help?  I am struggling to convert from being dependent on tables to design sites to using all css and divs.  Anyway, in my practice file, i made a header that is styled to be 50 pixels tall.  The type in the header goes to the top.  I am used to having type default to to the left and positioned vertically in the center they way type "works" when placed in a <td>. What am I not "getting?" I would like to know that if I change the css for the header region from 50 to another value that the type will always be positioned where I want it. 
    thanks in advance for any suggestions.  Maybe the picture I've attached will better explain what I'm talking about. Oh, and I've also attached the html file

    HudsonSwimmer wrote:
    Can someone help?  I am struggling to convert from being dependent on tables to design sites to using all css and divs.  Anyway, in my practice file, i made a header that is styled to be 50 pixels tall.  The type in the header goes to the top.  I am used to having type default to to the left and positioned vertically in the center they way type "works" when placed in a <td>. What am I not "getting?" I would like to know that if I change the css for the header region from 50 to another value that the type will always be positioned where I want it. 
    thanks in advance for any suggestions.  Maybe the picture I've attached will better explain what I'm talking about. Oh, and I've also attached the html file
    I'm afraid you'll have to starting looking at things differently. Css cannot yet vertically centre anything in a <div> container reliably.
    About as good as it gets is one line of text (see code below) using the line-height attribute AND you need to give the <div> a height too which is also likely to lead to other problems. So forget it. You can use padding and margin to push it into a 'visual position vertically centered' in your browser but there is no guarantee that others with different browser set ups will be seeing it the same.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    #vertCentre {
    height: 300px;
    background-color:#FF0;
    line-height: 300px;
    text-align: center;
    p {
    font-family: verdana, helvetica, arial, sans-serif;
    font-size: 12px;
    margin: 0;
    padding: 0;
    </style>
    </head>
    <body>
    <div id="vertCentre"><p>This is some vertically centered text</p></div>
    </body>
    </html>

  • Text Moving Down in Live View

    I've been working in Dreamweaver on a project and I've run into a problem with some text. Every time I go into live view, it moves down a few pixels, but in non-live view it appears correctly. I've tested it in Chrome and Firefox, too, and the text still moves down. I can't seem to get it to be still.
    Here's my code -
    HTML:
        <div id="contactBar">
        <div id="contactText">
          <h2>Contact us today at 417-522-4467</h2>
        </div>
      </div>
    CSS:
    #contactBar {
        width:1024px;
        height:77px;
        background-color:#004683;
        position:absolute;
        margin-top:545px;
        color:#FFF;
        text-align:center;
    #contactText {
        width:auto;
        height:auto;
        margin-left:auto;
        margin-right:auto;
    #contactText h2 {
        font-family:Arial, Helvetica, sans-serif;
        font-size:38px;
        font-weight:normal;
    Can someone please tell me why this is happening and how to fix it? I'd appreciate it.

    Because all headers have margins, paddings and even "transparent" borders.  You can reset these by putting the following CSS code at the top of your CSS file after any body and html css you might have:
    h1, h2, h3, h4, h5, h6 {
        margin: 0;
        padding: 0;
        border: 0;
    The above code simply resets all "possible" headings in your page to zero so you can now start from base zero.
    Hope this helps.

Maybe you are looking for

  • How to add row of text box and combox dynamically using struts......!!!!!!!

    Hi All, In my JSP I have something like a row of TextBox-----Combox-----TextBox Button--Add When user clicks on "Add" I need to add exactly the same row as above. I am using struts and have following code My jsp <html:text property="paramName" size="

  • Clone tool

    OK, I need help. I just can't use the clone tool. I had a big blob of mold in a complicated place so I needed to use multiple clonings. After 2 or 3 I got totally confused with a mess of circles of various sorts everywhere. I can get rid of them by g

  • Command line version of finder's get info command

    I am trying to find which version of MS Office 2008 is installed on a bunch of machines. On one machine, I can just do a get info on the MicrosoftComponentPlugin.framework, but I don't want to have to touch every machine. Does anyone know of a way to

  • For Loop Structure

    Hi... are multiple initializations inside the firt part of a for loop allowed in Java? for (int i = 0, int j = 0; i < someArray.length; ++i, j = j + 2) {     //doin' somethin' }

  • HT201412 iPad 3 keeps restarting and not restoring,

    Dear Experts, I have ipad 3 and since 4 days it keeps restating itself after 15-20 seconds, i tried restoring it gives unknown error [1.] and stacks in recover mood. anyone can help me with thiss??? thanks