Question of height div

http://www.jdcdemo.com/PBC/test.html

I want to reduce the height of the top div on the page on the page, namely: Nav1. When I added the list to the div to make the menu intems, top space and the low extra went. How to adjust the height to better accommodate content?

Thank you

Joe

Add this to the top of your CSS file:

/ * set the values of default browser on all zero * /.

* {margin: 0; padding: 0; line-height: 100 %}}

Then add your own margins & padding to individual tags selector #header #content p, h1, etc...

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

Tags: Dreamweaver

Similar Questions

  • Minimum height DIV

    De Noob question I know but there at - it a way to make a DIV has a height minimum. ie. This page my art seems to ave fell outside my div http://www.metrobham.org/students.html

    While there will be more content on this page (I hope), I would like to learn as well the question.

    Thank you

    min-height: 800px;

    in your CSS file will only div a minimum height of 800px.

  • Animation of edge doesn't scale to the width and height div parent

    We have an existing site that was built in 2007, but has been designed to fit perfectly with sensitive css, there were a few hiccups, but this was by far the biggest problem that I have encountered. I'm working on replacing a flash animation with animation that onboard animate cc 2014, I did, and everything went fine until I asked to play well with my existing Web page.

    I was playing with my files for a few days now, and I was wondering if anyone else has this problem. (I've been placing the code manually in html format, and not as a .oam) It seems that my animation of the edge, on the appropriate settings available, insists on the evolution of the size of the port view rather than the size of the parent div I put it in. I came with a difficulty of brute that changes javascript code so that the animation looks at 90% of the display window, but as soon as you resize the window, it goes back to 100%. Which is annoying because I need to be at 90% with a 5% margin/padding on each side (that's what the content div is set to of anyway, so when the edge host is set to 100% width, only go to 100% width of the content div that it is in) and even more embarrassing as that does not even begin to solve my problems with the desktop version of the site. As much as I love the sarcastic musings of my friend in HIM during the afternoon, I think we're both willing to entirely renounce this aspect of the project.

    When I tried to import a media file .oam that he just doesn't appear at all, no code, no javascrip, nothing shows the parent div and empty the stage in development tools (I check the code for troubleshooting purposes through google chrome).

    I'm really at the point where I hope I did something terribly wrong and I'll be able to save this new way to add in the animation. That would be the best case scenario at this point.

    Help, please!

    Here's how I solved the problem

    Configure the animation as w 100% and 100 hour

    You will need to exit mode suitable for it, also uncheck the option to stage at the centre.

    Then, I put a container around my scene in the html code. I call it class = "stagewrap".

    I then added javascript so that stagewrap would retain a certain aspect ratio but the scale to 100% width.

    That's what looked like my html

    My CSS looked like this:

    {.stagewrap}

    margin-top: 20px;

    Width: 100%;

    position: relative;

    overflow: hidden;

    margin-bottom: 30px;

    float: left;

    font size: 2.5vw;

    }

    Some of these styles will have to modify according to your needs or according to your needs.

    x is going to be your ration, which matches your width divided by your height, you can just divide the number of pixels, the units cancel out and that the ratio works for any other unit.

    There is the width to which your animation is 100% resolution without the scale upwards or downwards. It is a VERY important number to keep your overall percentages correctly.

    And z is probably 1, unless you want your text is larger or smaller, you can play with it yourself.

    "In my code, I wanted to also set it so that after a certain width of the window, the animation went to a static size so I did that."

    function setRatio() {}

    If ($(window) () .width)<= s)="">

    SW.height (sw.width () * thisRatio);

    }

    else {}

    SW.height (sh);

    }

    }

    s = the width of the window to which you want the size to go static LESS 1px

    SH = static height that you want the picture to stay in, this number automatically sets the width through the report.

    As insurance, you css for the size of the window, you want the static image to organize at all, the size of the .stagewrap in px

    I hope this helps!

  • Is this possible in items 11 - question of height/width of film

    to export a movie on your computer (for later use in a Web page) according to your own definitions of size?

    For example, I have a Web page that expects a movie with the following: width = 275 pixels of height = 240 pixels. It is important that I keep these measures if the layout of the page deforms and inapplicable because there is an effect of 'hit '.

    Therefore, I need to define the size of the film under items (unless there is another way).

    At the moment, if I right click on the movie in Windows 7 (in other words, the film I exported 11 elements), and then select Properties, I can only see the file size in KB, MB, or whatever and not actual dimensions height/width.

    Thank you.

    Steve

    Steve

    Thank you.

    Feel free to ask questions that evolve from your new exploration and experimenation with the suggested workflow.

    RTA

  • question of width div

    When I preview the div in Safari, FF etc. the div's width, I want it to be, but when it is online it simply corresponds to the browser window.

    Here is the code:

    < div class = "regtext" align = "center" width = "600" >

    < p align = "left" > < font size = "3" face = "Helvetica" > faucets are made of < B > < /B > a Halkey Roberts

    important provider for the inflatable boat industry. These valves

    are the same as those found on most of the major brands of the inflatable

    boats and are made of the best materials available. (Yellow)

    Centeral stem must be in the UP/CLOSED position. < / police > < / p >

    < p align = "center" > < img src = "Images/valveout1.gif" alt = "valveclosed" width = "247" height = "206" > < / p > "

    < p align = "left" > < font size = "3" face = "Helvetica" > once you have

    chosen as appropriate adjustment, it will take a few minutes

    inflate the tube for good. Then put on the cover and

    twisting closed to prevent accidental deflation. < / police > < / p >

    < p align = "left" > < font size = "3" face = "Helvetica" > to deflate the bladder, remove

    the lid, push the stem and turn 1/4 turn to the right for

    Keep it in position DOWN/OPEN allowing complete deflation. < / police > < / p >

    < p align = "center" > < img src = "Images/valvein1.jpg" width = "247" height = "206" > < / p > "

    < / div >

    Here is the page: http://www.dinghydogs.com/Valve_Text.html

    Thank you

    You do not have a specific width, located on the .regtext

    . If you want to stay at a specified with then you need to add the css margin (as below): 0 auto; centres of the
    horizontally in the window of the browser.

    .regtext {-font family: Helvetica; do-size: normal; make-style: normal; color: #000000; width: 800px; margin: 0 auto;} »}

  • Auto height div?

    I'm working on a model of e-commerce site. It has different columns. Problem 1 - nav columns and column 2 - column content can vary in height. I want to put a div around these two which will automatically size in height if one or the other column pushed down so there is a whole area of intact. Here is an example of extending a column after column 2.

    Appreciate the help. I'm already behind Sunrise this site.

    Picture 1.jpg

    Wrap your floating divisions within a division #container or #wrapper and apply overflow: hidden.  This will contain your floats.

    The magic of the overflow hidden:

    http://colinaarts.com/articles/the-magic-of-overflow-hidden/

    Equal height columns (3 options):

    http://ALT-Web.com/articles/equal-height-CSS-columns.shtml

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

  • Vimeo questions - not height adjustment

    Noticing a lot of height issues here... I'm happy that I'm not the only one. My site is all links vimeo. For some reason any they float above my footer on my laptop. When I resize the window, the height will not change. Is there a way to get around this? Downloaded quicktimes using would be better?

    Here is my site-

    www.adamsaul.com

    Very good point Adam.

    I will try to do more research on that. and get this info included in the tutorial as well.

    Thank you

    Ankush;

  • FGL and broaden the question of the DIV.

    Hello

    I am trying to replace a tabular by DIVs presentation as the new site will FGL and tables don't fit that DIVs can. I hunted for some pure CSS code to achieve an effect, because a DIV will extend its content when the mouse is placed over the tag DIV automatically and even collapse when the mouse over to another DIV since it's 18 ebooks that I will host. The content of the div will be primarily text with a few links for each of the type eBook to download.

    What I'd like to do is the following:

    • A single column FGL DIV but with 18 lines, one for each book. (perhaps that should 36 lines because I would like to expand.)
    • I want the title of the book only to appear on the first line (maybe the text can wrap depending on the size of the screen).
    • When the div expands the rest of the text (full book description and download links) are displayed.
    • The display format even apply to all devices.

    As I do for a hobby, I don't know how to achieve this and I hope for some advice. I know it can be done with Javascript, but if a visitor has disabled javescript while it does not work.

    Any ideas on if it's feasible or not, if it is, a sample of code I can develop and learn lessons?

    Lee

    PROBLEM #1: Mouseovers don't work on touchscreen devices because they do not have a mouse.  Better, if use you triggers to OnClick events to show/hide content.

    In the following example, more + links are obtained with a small plugin but effective called jQuery Condense.

    http://ALT-Web.com/FluidGrid/Fluid2.html

    MORE buttons hide/divisions with jQuery right switches.

    http://jsfiddle.NET/NancyO/AP9Hm/

    Nancy O.

  • 2 columns / 100 percent height divs (Firefox/Safari)

    Hey there:

    I'll have more trouble that I never imagined to create formatting CSS 2 column (with two columns spanning 100% height of the window). I have spent the whole day trying to figure this out for Firefox/Safari and am about to abadon this for tables.

    As the two columns will have different lengths of content, I can't get the shorter column to fill the rest.

    I threw up a beta version of this at:
    --
    gdsquared.com/clients/Ala/index.htm



    / * - This is the wrapper and the two columns containters-* /.

    {#wrapper}
    Width: 100%;
    height: auto;
    background-color: #666666;
    min-height: 100%;
    min-width: 50em;
    border: 1px solid #AAAAAA;
    }



    {.leftColumn}
    float: left;
    left: 15px;
    top: 15px;
    Width: 23.4em;
    height: auto;
    Color: #333;
    background: #E4F4F9;
    border-right: 1px solid #AAAAAA;
    padding: 0;
    min-height: 100%;
    }


    {.rightColumn}
    margin-left: 23.4em;
    margin-right: 0em;
    height: auto;
    Color: #333;
    background: #FFFFFF;
    border: 0px solid #AAAAAA;
    padding: 0px;
    min-height: 100%;
    }

    / * - End wrapper and the two columns containters-* /.


    As you will see, the wrapper (dark gray) pokes through depending on the size of the window (related content)
    Does anyone have an idea on how to solve this problem and keep the two columns spanned the entire height of the packaging?

    Thank you!

    gbowhall wrote:

    > As you can see, the wrapper (dark gray) pokes through according to the window
    > Dimensions (related content)
    > Anyone has an idea on how to solve this problem and keep the two columns extend to
    > the entire height of the packaging?

    There are a couple ways to reach the height of a column of equal when using

    The simplest method is a 'hack '. You must use a repeating background
    image set on the wrapper

    , i.e., a band of blue image clear who is
    the same color as your .leftColumn
    background, #E4F4F9; and the
    same width, 23.4em. The height must be subject of 10px.

    Then add it to your wrapper

    {#wrapper}
    Width: 100%;
    height: auto;
    background-color: #666666;
    min-height: 100%;
    min-width: 50em;
    border: 1px solid #AAAAAA;
    background-image: url(images/col_bg.gif);
    background-repeat: repeat-y;

    }

    There are other methods for javascript (link below), but using a background
    the image is the most common way to achieve equal heights.

    http://www.Projectseven.com/Tutorials/CSS/pvii_columns/index.htm

  • Problems with vertical expansion DIVS

    DIV_layout600.jpg

    (Dreamweaver CS5, MacBook Pro, OS X.8.2)

    This question bothered me for a while. I was not able to find a solution on the web at the moment. And Yes, I am relatively new to CSS!

    I have two DIVS, side by side, in a wrapper DIV (shown in purple line) to hold them in place left and right. There is also another outer envelope (called '.main", orange line) to contain the entire table centered on the page.

    What I want is for the DIV text expand vertically to accommodate any text overwhelmed in the event of differences between the browsers made.

    With this in mind, if I have to delete the specification of the text height DIVS (.featureleft and .featureright), the lower edge of the DIV tags will collapse upward until they connect with the last line of their text content, which is of course what I want, because it means, of course, if I add more text the DIVs will be expanded down to adapt to the additional text.

    However, when I remove the specification of the height of the packaging (".wrapper", shown in purple), the DIV .wrapper collapses up until its own line from the top, disregarding its own content (.featureleft and .featureright). In other words, it behaves as if it were an empty DIV.

    Why does this happen? Why he was unaware of its content? Thank you-

    Here is a general code that I use for the structures of the DIV:

    .main {}

    Width: 940px;

    margin: 0 auto;

    }

    . Wrapper {}

    Width: 940px;

    height: 850px;

    }

    {.featureleft}

    Width: 450px;

    height: 680px.

    do-family: Arial, Helvetica, without serif.

    float: left;

    text-align: left;

    }

    {.featureright}

    Width: 450px;

    height: 680px.

    do-family: Arial, Helvetica, without serif.

    float: right;

    text-align: left;

    Why?  Because your wrapper div contains floating elements.  For open lever, apply overflow: hidden to CSS of your wrapper.

    http://colinaarts.com/articles/the-magic-of-overflow-hidden/

    Nancy O.

  • Questions from five and a half years?  !

    The layout of my site is like below although the colors will be different

    It's all in a wrapper div 960px wide and no height

    top div on the page, I called header div is 960px wide and 134px high (to adapt the image of the logo)

    below a div for navigation - project probably seven - 960px wide and high of 30px

    the green zone is a div of class called "bodyleft".

    the black area is a div of class called "bodyright".

    Question No. 1 should be bodyleft and bodyright in a div eventually called mainbody?

    Question 2 photographs must go in a div or they better get a div? -J' I will be linking to enlarge the image. (Updates a table in a div looking for bad or is it quite logical)?  -C' is the question half!

    Question 3, I want a blue border down both sides, but it stops at the navigation bar - as you can see in the photo. How can I get the border to go at the bottom of page?

    Question 4 would I better give 'bodyleft' and 'bodyright' height to make them line up at the bottom?

    Question 5 should divs 'bodyleft' and 'bodyright' Div ID rather than Div class?


    site_layout.jpg

    As usual,.

    Any help will be greatly appreciated.

    Michael

    MichaelCo wrote:

    The layout of my site is like below although the colors will be different

    It's all in a wrapper div 960px wide and no height

    top div on the page, I called header div is 960px wide and 134px high (to adapt the image of the logo)

    below a div for navigation - project probably seven - 960px wide and high of 30px

    the green zone is a div of class called "bodyleft".

    the black area is a div of class called "bodyright".

    Question No. 1 should be bodyleft and bodyright in a div eventually called mainbody?

    Not necessarily. You can always add another

    in the two at a later stage, if you need something like columns of same height where you would use a background image that is repeated in the parent
    for example.

    Question 2 photographs must go in a div or they better get a div? -J' I will be linking to enlarge the image. (Updates a table in a div looking for bad or is it quite logical)?  -C' is the question half!

    Photographs do not need to go a

    . The goal is to produce as little code as possible to make a site work. Its common for new users to assume everything MUST go one
    or his own
    . It's just as bad as the use of a table comlpex for the design structure.

    You can put a table in a

    If necessary, probably as a last resort, or when its faster to throw something using a grid system.

    Question 3, I want a blue border down both sides, but it stops at the navigation bar - as you can see in the photo. How can I get the border to go at the bottom of page?

    Add overflow: hidden; to your css wrapper (I'm assuming that all other are within the 'wrapper')

    . The bodyleft and the bodyright are launched to enable them to sit side-by-side and as a guest, you MUST clear the floats so that the other elements on the page to assume their correct positioning.

    Question 4 would I better give 'bodyleft' and 'bodyright' height to make them line up at the bottom?

    Absolutely not! See my answer to question 1, which refers to the use of a background image "Fake" equal column heights.


    Now if you wrap the bodyleft and the bodyright in their own
    and apply the image of babckground to that or apply the background directly image on the packaging
    is your decision. If the package already has a background image applied, you must create a new free
    to apply the background image. Google for the columns of 'false '.

    You should never assign a height to one

    UNLESS you know how high it will be, and the only two instances when that will occur is if you have only one image or images in the
    or when you set the
    to a particular size to evoke a scrolling text area.

    Question 5 should divs 'bodyleft' and 'bodyright' Div ID rather than Div class?

    IDS are more powerful classes, but can only be used once in the code of pages while classes can be used several times on each page.

    Because bodyleft and bodyright will be only used once on your page, it is much more efficient and of good practices to use ids instead of classes.

    As usual,.

    Any help will be greatly appreciated.

    Michael

  • The cursor does not not with the ID of the div?

    It works very well without div ID as below
    http://StackOverflow.com/questions/5210033/show-div-on-hover-with-only-CSS

    div {
    view
    : No
    }

    a
    :hover + div {
    view
    : block
    }

    <a>Hover over me!</a>
    <div>Stuff shown on hover</div>

    But after that I modified with the ID of the div, it does not work? How do works with div ID?

    {#2

    display: none;

    }

    #1:hover + {#2}

    display: block;

    < div id = "1" > hover over me! < / div >

    < div id = "2" > stuff shown in the overview < / div >


    May you not actually use #1 and #2 as the ID are you?

    (you cannot use numbers to begin the names of id or class)

    EDIT: it should work fine when you switch to valid identification names (make sure that you have a declared doctype or IE8 and earlier it will ignore).

  • a question on a resizable loaded object

    Guys...

    I was searching on the website on how to make an auto Resizable screen, so it feet on many devices regardless of their size and I found a tutorial that adds the image to the Flash library and it resizes according to the size of the screen...

    Now, I have removed the object from the library and changed the var "bitmap" of the tutorial for a "Loader", so the image is not in the library...

    My only problem is that when you try the swf, the image is all over the screen and fits on it after enlarge you or reduce the size of its...

    Then, how the image can be in the right place at first?

    (The tutorial had as an event trigger a mouse click... I changed it to a timer event and at my peak was in the library it worked fine, but now I have to resize the windows so that it works)

    Here is the code:

    Main class

    package {}

    Import org.display.OffsetResize;

    import flash.display.Sprite;

    Import 12345678910111213import;

    import flash.display.StageAlign;

    import flash.display.StageScaleMode;

    import flash.events.Event;

    import flash.events.MouseEvent;

    import flash.utils.Timer;

    import flash.events.TimerEvent;

    import flash.display.Loader;

    import flash.net.URLRequest;

    SerializableAttribute public class Main extends Sprite {}

    private var _bg:OffsetResize;

    private var t:Timer = new Timer (0,0);

    public void Main (): void {}

    If (internship) init();

    of another addEventListener (Event.ADDED_TO_STAGE, init);

    }

    private void init(e:Event=null):void {}

    stage.scaleMode = StageScaleMode.NO_SCALE;

    internship. Align = StageAlign.TOP_LEFT;

    var photo: Loader = new Loader();

    Picture.Load (new URLRequest ("FIN1.jpg"));

    _bg = new OffsetResize (picture, OffsetResize.MIN);

    stage.addChildAt(_bg,0);

    _bg.stage.align = StageAlign.TOP_LEFT;

    t.addEventListener (TimerEvent.TIMER, resizeada);

    t.Start ();

    }

    private void resizeada (TimerEvent): void {}

    _bg.offsetType = _bg.offsetType is OffsetResize.Max? OffsetResize.MIN:OffsetResize.MAX;

    t.Stop ();

    }

    }

    }

    Class OffsetResize

    package org.display {}

    import flash.display.Sprite;

    import flash.display.DisplayObject;

    import flash.events.Event;

    SerializableAttribute public class OffsetResize extends Sprite {}

    public static const MAX: String = "max."

    public static const = "min" MIN:String

    private var _offsetType:String;

    public void OffsetResize($child:DisplayObject,$offsetType:String="max"):void {}

    _offsetType = $offsetType;

    addChild ($child);

    If (internship) init();

    of another addEventListener (Event.ADDED_TO_STAGE, init);

    addEventListener (Event.REMOVED_FROM_STAGE, end);

    }

    private void init(e:Event=null):void {}

    stage.addEventListener (Event.RESIZE, stageResize);

    stageResize();

    }

    private void stageResize(e:Event=null):void {}

    var px:Number = stage.stageWidth / width;

    var py:Number = stage.stageHeight / height;

    var div:Number = _offsetType == 'max '? Math.Max(PX,PY):Math.min (PX, PY);

    Width * = div;

    height * = div;

    x=(stage.stageWidth/2)-(width/2);

    y=(stage.stageHeight/2)-(height/2);

    }

    private void end(e:Event):void {}

    stage.removeEventListener (Event.RESIZE, stageResize);

    }

    public function set {offsetType(type:String):void}

    _offsetType = type;

    If (stage) stageResize();

    }

    public function get offsetType (): String {return _offsetType ;}

    }

    }

    Thanks in advance!

    Try:

    Main class

    package {}

    Import org.display.OffsetResize;

    import flash.display.Sprite;

    Import 12345678910111213import;

    import flash.display.StageAlign;

    import flash.display.StageScaleMode;

    import flash.events.Event;

    import flash.events.MouseEvent;

    import flash.utils.Timer;

    import flash.events.TimerEvent;

    import flash.display.Loader;

    import flash.net.URLRequest;

    SerializableAttribute public class Main extends Sprite {}

    private var _bg:OffsetResize;

    public void Main (): void {}

    If (internship) init();

    of another addEventListener (Event.ADDED_TO_STAGE, init);

    }

    private void init(e:Event=null):void {}

    stage.scaleMode = StageScaleMode.NO_SCALE;

    internship. Align = StageAlign.TOP_LEFT;

    var photo: Loader = new Loader();

    picture.contentLoaderInfo.addEventListener (Event.COMPLETE, resizeada);

    Picture.Load (new URLRequest ("FIN1.jpg"));

    }

    private void resizeada(e:Event):void {}

    _bg = new OffsetResize (picture, OffsetResize.MIN);

    stage.addChildAt(_bg,0);

    _bg.stage.align = StageAlign.TOP_LEFT;

    _bg.offsetType = _bg.offsetType is OffsetResize.Max? OffsetResize.MIN:Offs etResize.MAX;

    }

    }

    }

  • Questions 11G B2B

    Hi B2BGurus,

    Can someone explain with under questions, here I give you our script and my questions

    Scénarion:

    Div a FTP-> SOA-> B2B OutboundCoustome queue-> B2B-> Http or HTTPs (AS2) or FTP (As2)
    Div B FTP-> SOA-> B2B OutboundCoustome queue-> B2B-> Http or HTTPs (AS2) or FTP (As2)
    DIV C FTP-> SOA-> B2B OutboundCoustome queue - B2B-> Http or HTTPs (AS2) or FTP (As2)
    Div D FTP-> SOA-> B2B OutboundCoustome queue-> B2B-> Http or HTTPs (AS2) or FTP (As2)

    Scénarion Explanantion:

    1. division people places files in FTP
    2 Soa picks it up, make the transformation and place the file in the custom queue outbound B2B
    3 B2B Server he picks up B2B custom outgoing queue and converts it into native EDI and sends it to the partner using AS2

    Issues related to the:
    1. my idea is - for each trading partner plans to create two different queues (one is for outgoing and another is incoming), is he influenced the creation of n number of custom queues?
    2. If create us a custom queues who is suggestible (custom JMS queues or queues custom QA)
    3. If any transaction is error, the queues, the transaction will go? And how can we find this transaction in the database.
    4. how the 850 transaction and 997 transactions will match, on what basis B2B will check?
    5. we sent a single transaction to the vendor and we received a ve - MDN, how you look than ve - DND and how it will recognize
    6. are there some different queues or error in Oracle B2B?
    7. What are the important paintings of B2B in 11 G
    8. in the table of B2B_Instancemessage we have ID and B2B messageId, could you please tell us what is the purpose of this?


    Concerning
    CNU

    We sent a trial in. to the trading partner and business partner sent DND what BP, how can we say that this DND is related to the individual PO...

    1. you can check the conversation on Oracle B2B GUI report
    2 REFER_TO_MESSAGE_ID DND will be identical to MESSAGE_ID of PO (table B2B_BUSINESS_MESSAGE in the SOAINFRA schema)

    Leaving and entering error error will move in the same queue or the different queue?

    Yes, each error will move into the same queue

    Kind regards
    Anuj

  • Get the type line height / of a JTextArea in a GridBagLayout

    I have a JTextArea declared without default rows/columns, full text of unknown size (assigned during execution). This JTextArea line wrap set to true and wrap the Word style set to true. He is sitting in a JPanel GridBagLayout-ed, with
    weightx = 1, heavy = 0.7 gridx = 1, gridy = 2, gridwidth = 2, gridheight = 1, fill = BOTH, anchor = WEST
    The JPanel in question a height minimum, maximum and preffered all set at the same amount, because I displayed a bunch of these signs in a vertical scrolling region. The problem is, I don't know how many pixels to set for this height because I do not know how big the panel will be as long as GridBag aligning. I put in a ComponentListener to check resize them and I make one
    int desiredHeight = SOME_CONSTANT_FOR_ALL_THE_OTHER_STUFF_IN_THE_JPANEL + jTextAreaObject.getLineCount () * PIXELS_PER_ROW_OF_TEXT;
    then, set the dimensions of JPanel accordingly.

    Unfortunately, it seems that jTextAreaObject.getLineCount () always returns 1, even though I see that he got at least once rolled up (I see a couple of value of pixels on the top of each letter). I guess it's because I have no return carriage/flow line in my text. OK, so I tried jTextAreaObject.getRows () but that always returns 0. So what appeal will tell me how many lines is displayed onscreen, nevermind carriage returns and other? Thank you!

    The 'getWrappedLines' of text utilities method might work for you.

    Published by: camickr on September 28, 2010 17:58

    Anyone know how to get the link to work? I clicked on the button "click to insert a link.

    Published by: camickr on 29 Sep, 2010 01:14

    Thank you, Darryl, the link works now.

Maybe you are looking for

  • Apple Watch 2 software update does not work

    Why not improve my iwatch?  Hanging installation. To install the update, Apple Watch must be connected to the charger (what is) and less than 50% charged (mine is 100%). Click on the ok button and nothing happens... of ideas? This is a question asked

  • Lock the ring forever? IPhone 5 s

    On the iphone how can 5, I lock the ringtone on ALWAYS ON and hard for my parents to the old person? It borders always buttons and settings without realizing it.

  • I read the help forums and I've tried everything, and yet Firefox is still slow can I do?

    I had problems with Firefox for about a week and no matter what I do nothing help to repair. I tried to reset firefox and it did not help, I went on several articles and nothing helps. I tried to disable plugins troubleshotting and even things in my

  • Why the fan of my Satellite A500-19W of bizarre acts?

    I bought this computer a week ago. I have Windows 7 64 bit. When I surf the net or watch a movie or listen to music the fan starts for 2 minutes, stop for 2 minutes again. It's a cycle that never ends, and the sound of it that bothers me, making me t

  • Is it better to send a photo from my phone by text or email?

    I'm just curious to know if there is an advantage to send a picture to someone in an SMS or e-mail.  If I'm on wifi, then he uses all the data to send, right?  If I use the wifi, a text message still uses data to send it?