Problem with the text in the div tag

Hey there,

the question that I have is that every time that I add text to a div tag and press 'enter' to start on another paragraph, the text on the first paragraph right guard moved down to about a paragraph. It happens in Dreamweaver and the browser when available is presented as a preview. I have included a few pictures below, please advise.

First added text, which seems fine:

Screen shot 2013-10-09 at AM 09.27.43.png

But when I try to type the text after pressing "enter".

Screen shot 2013-10-09 at AM 09.28.20.png

I want the text to align to the top instead of from a paragraph down. Something like this (made in InDesign):

Screen shot 2013-10-09 at AM 09.28.42.png

I will include the code as well. When I select the div tag, it's what is highlighted in the code pane:

< div id = "about6" >

< p > Hey there < /p >

< p > Hey there 2 < /p >

< p > Hey there 3 < /p >

< p > Hey there 4 < /p >

< / div >

A screenshot of the of type parameters for this div:

Screen shot 2013-10-09 at AM 09.42.39.png

Any help would be appreciated. Thank you.

Paragraphs, titles etc. have legacy browser style rules.

We can remove the style by adding rules to the top of the stylesheet

* {

padding: 0;

margin: 0;

}

Even better is to include a CSS reset set of rules such as found here http://meyerweb.com/eric/tools/css/reset/

By the way, please note that the use of identifiers will limit your fun by using style rules. You should not use ID unless needing a single login. In your case, I would use a class.

Heights of adjustment are also going to strangle the natural flow of your document, especially if you intend to start on the drawings of fluid

I hope this helps.

Tags: Dreamweaver

Similar Questions

  • Problem with the conditional tags in printed output

    I write help files for different versions of our software - version 4 and 5 using Robohelp for HTML 5.0.2

    There is a large overlap of information between the two, so I use a help file joint with marked topics that are specific to version 4 or version 5.

    I went out and then use with 'NOT v4' or "NOT v5" as the conditional tags.

    It works fine in the HTML output. However, I encountered problems with the printed output.

    Ideally, I want the help file using the option "generate the single document" because it means that the document produced, without the single output field. However, when I do, the tags conditional build fail and I get a piecemeal result.

    If I generate the document by using the option 'generate individual documents' tags conditional build work, but I get the only field I want to avoid.

    Does anyone know how to get the conditional tags to work when the option "generate the single document" is selected?

    Pierre and HKabaker - thanks for your comments.

    I think I have the answer now.

    In the properties for the SSL Print dialog, the third screen is the dialogue of section layout. I had removed some sections in the right pane (for example, the default title page, glossary, and index) because I did not want them to appear in the final printed output. It seems that without these sections present conditional compilation tags do not work correctly when the document is released by using the option 'generate a single document ".

    I started again with a "blank" printing of SSL version. Conditional constructions using the "generate a single document" appear to work fine when I leave the dialog layout intact section.

    I can even do the conditional tags build an injustice because the option "generate a single document" (after that I made the changes in the dialog layout section) seems to be that some of the chapters in the table of contents and omitting others.

  • alignment with the &lt; div &gt; tags

    I am having trouble getting my 3rd < div > tag align (id = flash). It is left in line with the edge of the tag '#content' < div >. Essentially left alignment on the edge of my centered layout. Here is my code, anyone can have an idea on what I'm missing? I am new to do not use tables.

    Thank you

    < head >
    < meta http-equiv = "Content-Type" content = text/html"; Charset = UTF-8 "/ >"
    < Title > page < /title >
    < style type = "text/css" >
    {body
    do-family: Arial, Helvetica, without serif.
    background-color: #FFF;
    margin: 0px;
    padding: 0px;
    }
    #container {}
    margin: 0 auto;
    Width: 999px;
    }
    #content {}
    Width: 100%;
    }
    {#flash}
    position: absolute;
    top: 134px;
    left: 216px;
    }
    < / style >
    < / head >

    < body >
    < div id = "container" >
    < div id = "content" > < img src = "images/background.jpg" width = "997" height = "2400" / > "
    < div id = "flash" >

    This is a decision by aligning

    < / div >
    < / div >
    < / div >
    < / body >
    < / html >

    The same can be applied to the normal margins:

    {#flash}

    margin: 134px 216px 0px 0px;

    }

    Is that what you are looking for?

    Nick

  • I need help with the DIV tags :)

    Hello.

    I'm currently building a website for a server CoD: WaW Nazi Zombies I'm currently getting. The purpose of this one is just for me and my friends to play nazi zombies and test different mods of it. I'm putting the layout for the Web site using styles and DIV tags I want to have two div tags on the same line as the other. Some solutions I've seen include float, but when I try that it does not work so I turned on the Adobe Forums. Here is my code:

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "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 "/ >"
    <!-TemplateBeginEditable name = "doctitle"-->
    jCodZombies < title > - < /title > model
    <! - TemplateEndEditable - >
    <!-TemplateBeginEditable name = "head"->
    <! - TemplateEndEditable - >
    < style type = "text/css" >
    <!--
    . Header {}
    height: 310px;
    Width: 1280px;
    background-image: url (.. / jCodZombies/images/slices_01.gif);
    }
    . NAV {}
    height: 461px;
    Width: 481px;
    }
    . Happy {}
    height: 461px;
    Width: 799px;
    background-image: url (.. / jCodZombies/images/slices_03.gif);
    }
    .footer {}
    height: 253px;
    Width: 1280px;
    background-image: url (.. / jCodZombies/images/slices_04.gif);
    }
    ->
    < / style >
    "" < script src = "... / Scripts/swfobject_modified.js" type = "text/javascript" > < / script >
    < / head >
    < body >
    "" < div class = "header" > < img src = "... / jCodZombies/jCodZombies.gif" width = "1280" height = "300" / > < / div >
    < div class = "nav" >
    < object id = 'FlashID' classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width = "481" height = "461" > "
    "" < param name = "movie" value = "... / jCodZombies/nav.swf" / >
    < param name = "quality" value = "high" / >
    < param name = "wmode" value = "opaque" / >
    < param name = "swfversion' value ="6.0.65.0"/ >
    <!-this param tag prompts users with Flash Player 6.0 r65 or later to download the latest version of Flash Player. Delete it if you do not want users to display the prompt. ->
    "" < param name = "expressinstall" value = "... / Scripts/expressInstall.swf" / >
    <!-next object tag is for non - IE browsers. Then he hide from IE using IECC. ->
    <!-[if! IE] >->
    "" < object type = "application/x-shockwave-flash" data = "... / jCodZombies/nav.swf" width = "481" height = "461" >
    <!-<! [endif]-->
    < param name = "quality" value = "high" / >
    < param name = "wmode" value = "opaque" / >
    < param name = "swfversion' value ="6.0.65.0"/ >
    "" < param name = "expressinstall" value = "... / Scripts/expressInstall.swf" / >
    <!-the browser displays the following alternative content for users of Flash Player 6.0 and higher. ->
    < div >
    < h4 > the content of this page requires a newer version of Adobe Flash Player. < / h4 >
    " < p > < a href =" http://www.Adobe.com/go/getflashplayer_fr "> < img src = ' http://www.Adobe.com/images/shared/download_buttons/get_flash_player.gif "alt = 'Get Adobe Flash player' width = '112' height ="33"/ > < /a > < /p > "
    < / div >
    <!-[if! IE] >->
    < / object >
    <!-<! [endif]-->
    < / object >
    < / div >
    < div class = "content" > < / div >
    < div class = "footer" > < / div >
    < script type = "text/javascript" >
    <!--
    swfobject.registerObject ("FlashID");
    ->
    < /script >
    < / body >
    < / html >

    Also here is a link to my site that this code is for: http://www.jcodzombies.TK

    It should work. In addition, he is a model for two pages on this Web site. He is not too complicated and have done it before, but can't get out so I would like some advice from you guys.

    Thank you and I hope to see some answers soon.

    If you have Dreamweaver, why don't you just try one of their file > new... home pages? Maybe try 2 columns with header and footer? Or fair value each of your divs a different background color and try to play with things. You should be able to simply float your div 'nav' on the left. It is usually a good idea to create a div 'container' and put all your other div inside. Then the div 'container' your maximum width and value margin: 0 auto;

  • problem with the div and CSS tags

    Hello guys

    First off I want to applogise if theres a post on this already I can be blind and do not see it and if its also a stupid question

    My problem is I crazy my website in photoshop, it sliced upward and exported all went well, I made a model and made all the editable regions

    but

    When I need to hit more that my site may contain that IMGS do not just move do gaps in the page like this

    help.jpg

    I want to Dim and the content of stretch and I add more content

    help2.jpg

    Thank you very much

    Tegan

    no comment on my Office haha rose

    It is obvious to me, what is the problem.  You used a graphical application to generate your HTML code for you.  It's OK for fast prototypes only.  As you have discovered, code HTML Photoshop is too rigid and fragile to use in a real website.

    Use Photoshop to create images only.

    DW to create your web page.

    Take a fireworks (or Photoshop) model of a basic CSS layout in DW

    Part 1-
    http://www.Adobe.com/devnet/Fireworks/articles/web_standards_layouts_pt1.html

    Part 2-
    http://www.Adobe.com/devnet/Fireworks/articles/web_standards_layouts_pt2.html

    Adobe Developer Center - introduction tutorials
    http://www.Adobe.com/devnet/Dreamweaver/CSS.html

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB
    http://ALT-Web.blogspot.com

  • Need help with the div tags

    I created several tags to dig under the body of the page (called bodyleft, englishpara, polishpara and bodyright).  The body has an inserted image I will be converting to a viewer.  I want to do is merge tags so that when the image is enlarged the content below it is pushed down until the picture returns to normal size.  Does anyone know how to do this?  Or I have to choose a different layout?

    http://02cada7.netsolhost.com/Stasik_Family_Website/indexwithballoon.html

    The only way to have content to move down when other content develops is that all of this content placed in static containers, i.e. is not not a position absolutely.  This is going to happen to the Exhibitor an image lightbox.

  • Re-positioning of the div tags

    I am struggling with the div tags - I'm a newbie and have created an experimental web page.   However, everything was good until I started to add a spry menu.  the right tank moved and I can't figure out how to move left.  I tried positioning properties, but could not make it move!  Can anyone help.   I only have 2 divs "left_column" and "right_column" more container page is here

    http://Web.me.com/suethomo/site2/index.html

    This is how it looks before I mucked with the spry menu

    http://Web.me.com/suethomo/Site2a/index.html

    Thank you

    You didn't close the left_column so that the right column is in the left column. Add before

  • Problem with the Oracle text markup

    Hello

    I have a problem with the Oracle text markup.

    I am looking for keywords in a text which is composed by a question and answer.
    Here is the structure of my text:
    & lt; div class = 'question' & gt;
    & lt; a & gt; the title of my question & lt; /a & gt;
    & lt; div class = "reply & gt;
    content of response
    & lt; / div & gt;
    & lt; / div & gt;

    It is possible to search those keywords in the question or answer only. For this, I use the stored procedure:

    {call CTX_DOC. MARKUP)
    index_name = >?
    textkey = >?
    text_Query = >?
    restab = >?
    query_id = >?
    startTag = >?
    (EndTag = >?)}

    _with these parameters: _

    index_name = < my index >
    textkey = < id for the search text >
    text_Query = < a query containing the keywords >
    restab = < a table SQL to store the marked text >
    query_id = < id >
    startTag = ' < span class =-"highlight\" >. "
    EndTag = "</span >.

    The markup should be done only in the place you want (question, answer, or both).
    The markup is good when I search a keyword throughout the text, in the question or answer only.
    * If I search two key words in the question or answer, the markup is bad *.

    _Example: __
    I am looking for the words "* Internet *" in question only.
    Here's the query passed to the stored procedure:
    + * text_query * = 'service & internet' INPATH (//div[@class = 'question'] / has) +.

    In the question, these words are well marked.
    In response, only the first word is marked.

    * Why the first keyword is also marked in the response while the query specifies a search in question only? *

    The same problem appears when I search for the same keywords in the response only.
    In this case, in the answer, these words are marked as well.
    In the issue, only the first word is marked.

    Thanks for your help

    Edited by: user11088931 Apr 21. 2009 06:17

    Try text_query = (service & internet) INPATH (//div/a)

    Single quotes in a query do nothing. I think that your request has been treated as

    Service & (internet INPATH (//div/a))

  • Photoshop: problem with the text tool

    Hi there, problems with my text in Photoshop tool. When I try to write, using vertical text is written just a line, a straight line instead of any text. This only started happening in the last hours. I tried to change the texts and closing and start Photoshop again, all without success, please help?

    Please reset the text tool

  • Problem with the text is pixelated

    Problem with the text is pixelated on iPad retina. You have a solution?

    Digital Publishing Suite 101: keep the text accurate in a Raster slideshow

  • Problems with the 'Text Ticker' Widget

    Hello, I have a problem with the widget "Ticker text." I tried to put more ticker and then a text on my site, but it does not work, when I look in Muse it looks like this:

    TextTickerinMuse.JPG

    and when I look in the preview only the first text ticker works... maybe it is not possible to have more then ticker text on a site?

    TextTicker.JPG

    Thank you.

    It seems that you use the same name for all instances of ticker on the page.

    You must have a unique name for each ticker you want on a single page. Strips with duplicate names will not work.

    See you soon,.

    Vikas

  • Problem with the display of alt text

    Hi guys, I have a strange problem here. my www.gogua.gr site cannot display alt text and I can not find the error, can you help me?

    Your website doesn't have a problem with the replacement text apart from the fact that you use innapropriately.  What I think you are looking for is 'ToolTip' that IE displays when you hover an image with alt text?  If so, that is to say wrongly uses the alt text and Firefox is correctly I think that, with the title attribute.  It isn't your site that may or may not display the text, this is the browser.

    With regard to the use of alt text to say 'click to enlarge', this isn't such a good idea.  The use of the text is to provide an alternative text for the image in case a viewer is not the images displayed, or uses a screen reader.  It should be used to describe the image.

    Martin

  • Problem with the bulleted text

    I am new to InDesign and the suite CS4 and am having a problem with the flow of text in a bulleted list in a trifold brochure.

    I work with a background image to EPS and in the bulleted text in a text box in one of the 'pages' text will be not as typed - jumps to the next line for some reason any. If I create a text box similar off the page I have no problem, and it lists as needed.

    The first image is as it should be, and the next image is how it makes its appearance. Any attempt to change seems futile.

    Any ideas please?

    ImgA.jpg

    ImgB.jpg

    Could there be a small invisible frame with applied at that time dress up there?

    Select all to see if it presents itself, or access the properties of frame and select this option to ignore the text wrapping to see if skin everywhere make these round lines.

    k

    I wonder if this background image a dressing applied with a setting, detect the edges so that the part of the image is kicking back your text.

  • I have problems with the text... Help

    Hey

    I have problems with the text box in indesign cs4...

    When I do a text frame and write a short text and want to make a new line and press ENTER, my cursor goes to the next page and the small red cross in the corner of my document apears.

    someone knows what to do here?

    I realle need your help

    Thank you

    This has been covered a lot. A BIOS update may be an option to solve the problem of keyboard mapping, you can change your keyboard shortcuts to reassign the digital keypad input to be a paragraph return or you can try simply by changing the State of the numlock - if it is on, turn it off and vice versa. Withthis problem most of the systems that seems to change the function of the two keys back and forth between the enter alpha and entry number.

  • Strange problem with the formatting of the text

    Hello

    I had a strange problem with the formatting of the text. I created a document in Polish language and the strange thing happens when it divides the word to the next line. For example here on this part of the page, I have a word "umieszczamy", which should be divided "' u - CEF - szcza - my", but my Indesign divides in umi-eszczamy (as shown on the picture). " How can I fix it so it divides the word correctly?

    Concerning

    forum.jpg

    What language is awarded when you select the text? Hyphenation, but also the spelling, is controlled by the dictionary that is assigned to the text.

    If the language is correct, you might have to change the hyphenation in the user dictionary.

Maybe you are looking for