How to create a border around an AP DIV

Can anyone tell me how to do this? Seems like a simple
request - hopefully it is! Also, how do I change the border color?
Thanks!

Use the CSS border property. Start here:
http://reference.sitepoint.com/search?q=border
Walt
"Fun Leprechaun" <[email protected]> wrote
in message
news:fs76ud$d86$[email protected]..
> Can anyone tell me how to do this? Seems like a simple
request -
> hopefully it is! Also, how do I change the border color?
>
> Thanks!

Similar Messages

  • How to create a border around JCheckBox?

    Hello,
    I would like to set a border around a JCheckBox. I don't mean the little square arround the check symbol, I mean the whole component. Does anyone know how to do this?
    More details:
    What I am trying to do is to use a JCheckBox as the renderer for a column in a JTable. However, I would like the values of this column to look like the column headers. In other words, I am trying to create a "row header". However, when I try to set the border of my JCheckBox to the same thing as the header renderer component, it doesn't show up that way. If I just use a JLabel as the renderer, I can set the border and it shows.
    Does anyone have a suggestion? Thank you for your help.

    yourCheckBox.setBorderPainted(true);

  • How do you create a border around text?

    how do you create a border around text?

    Can you be a little more specific about what you are trying to do and the application that you want to use? The methods can vary depending on the application and who published it. For instance, if you're using Final Cut Pro here is a discussion describing how the border can be created.
    https://discussions.apple.com/thread/1470384?start=15&tstart=0
    If you are using an Apple branded application you can also post in the specific forums for those applications in order to help ensure a complete response.
    https://discussions.apple.com/community/ilife
    https://discussions.apple.com/community/iwork
    https://discussions.apple.com/community/professional_applications

  • How can I create a border around an image in cs6?

    I would appreciate advice on how to place a border around an image in cs6. 
    Thanks in advance.

    To add to the previous responses, if you want this only for 1 image on your page, you could either assign a specific ID or CLASS to the DIV that holds that image and assign CSS for that in particular like this:
    HTML
    <img src="./your/path/to/img.jpg" id="imgwithborder" />
    CSS
    img#imgwithborder{
    border: 1px solid black; /* will render a 1px solid black line on all 4 sides */
    Alternatively, you could use inline styling to achieve this:
    HTML:
    <img src="./your/path/to/img.jpg" style="border: 1px solid black;" />
    Good luck.

  • How to create a border for a paragraph ?

    Can anyone tell me how to create a border for a paragraph ? Is this even possible without creating a table ?
    I would like to have the page header with a single line below it and the page footer with a single line above it. Inserting a line seems to force unnecessary space above of below the line and using a table seems to force a blank line below the table also creating unnecessary space.
    Thanks

    Thanks, I had the problem with this approach that the line never appeared on each page but adding to the section master would fix it.
    Still being able to set a border would be good! I did try using the text box but the border options are pretty inflexible. I was unable to just set the top or bottom borders. Did I miss something basic here or is this option just not available ?
    Any idea if this is coming in a future release ?

  • How to make a border around a pic-in-pic?

    I use adobe premiere pro cs3. What is tehe best (and hopefully an easy way) to create a border around a pic-in-pic movie. Is it correct that I can't find an option for that? I make this kind of things now by placing the second clip in track video-2 en then changing the size. But there is no option then in wich i can specify the thickness and the color of a border.

    Use a color matte on track 2 and your PIP on track 3. Size both to your liking, for instance track 2 sized to 50% and track 3 to 45%. The difference in size determines the border width, the color of the matte is your border color. Start with the color matte using motion/scale/position, then copy and paste attributes to track 3 and scale this further down to create the desired border width.

  • Creating a border around objects?

    This should be simple but as a human being I'm useless and I can't figure it out
    I want to create a border around images like the triangles on
    this website.
    http://www.htmlandcssbook.com/code-samples/chapter-15/example.html
    Baby steps please, as I said I'm an invalid

    I'm 73 you will get that math soon hopefully you also get to 73 some day take your time. By 15 I had to take it in school.
    Equilateral triangle have three equal length sides and all three angle are 60degree  only these will expand with equal size borders added on the three sides.. Some triangle will expand with two equal size borders other all the borders will be different sizes. Symmetric things like squares and circles expand evenly.
    Equilateral triangle:
    You may find this helpful http://www.mathsisfun.com/geometry/symmetry-line-plane-shapes.html

  • How to remove black border around image files?

    I'm something of a beginner with Photoshop, so forgive me if I've missed something entirely obvious: for some strange reason I'm now getting a black border around all image files that I save through the "Save for Web & Devices" panel. Does anyone know how I can save without creating this border? It looks rather unsightly when I load it into a client site. The file in question is a .png, but I seem to be getting the same effect with all other image files as well.
    Thanks in advance,
    Shane

    One cause could be having the matte color set to something other than none.
    Is that a png-8?
    MTSTUNER

  • How to get a border around several components in GridBagLayout

    I have several buttons in a 16 x 12 matrix using GridBagLayout manager
    Now I want to have a border around buttons 1/1 to 6/6 and another border around 1/7 to 8/6
    and another border around 1/9 to 16/6. How can I do this ?

    I usually create JPanels for each group, with their own LayoutManager. Adding a [ border to a JPanel is fairly staight forward|http://java.sun.com/docs/books/tutorial/uiswing/components/border.html] . To put thing together, I add instances of those JPanels to a top level JPanel in some frame or window.

  • How to make a border around text?

    In my latest FCE project, I made a solid color matte clip (dark blue) to set below my titles to give the text a colored background (these titles are not overlaid on video clips, so without the colored matte, the background would be the default black of the Timeline, and I don't want black).
    Anyway, so here I have this nice white text overlaid on a dark blue background, looking pretty good, and now I'd like to put a decorative rectangular white border around the text, a thin white line, or a maybe a double white line, sort of like a pinstripe, to elegantly (I hope) enclose the text in a sort of box.
    What would be the best way to create such a border? Could I make one on a transparent layer in Photoshop (I have CS-2,) and then import it into FCE as a clip to set the text above? Or is there a simpler way to do it, within FCE?
    Any suggestions would be welcome.
    Tom

    The only option I see on that PieroF webpage is to download it as a .zip file. When I download it and double-click on the icon, I get that zoom-out effect like it's opening, but it doesn't open. Dropping its icon onto the Stuffit icons doesn't do anything either.
    Anyway, I just experimented with masking off a colored matte in the way you mentioned, and I think I see how to do it: create a color matte and then lay two masks on top of it, an inner one and an (inverted) outer one, which leaves only a thin line of the color matte still showing. Is that it? For a double pinstripe, I suppose I would do that twice, i.e. create two masked-off mattes, one a little larger than the other, and stack them up on the video tracks?
    It's more trouble than the Piero frame generator, no doubt, but effective. Thanks!
    Tom B.

  • How to add a Border around an ImageView

    Hi all,
    I'm adding a row of photos in my application which are being resized to fit into some constrained space with Preserve Ratio true. They are put in a TilePane, with a Label below each photo.
    Basically, I give all my ImageViews a fitHeight of 120 pixels, and let them determine how wide they will become themselves in order to preserve the ratio.
    It looks great.
    However, I would like to add a Border around these images, as they sometimes fade too much into the background to clearly see the edges. ImageViews themselves donot support borders, so I'm forced to wrap these ImageViews inside another container.... but, no matter what container I use, the container itself refuses to resize itself to fit exactly around the image -- it seems to be completely oblivious of the real size of the Image -- with some parameters the ImageView will simply render itself outside the edges of its container, and with other parameters the container is wider than the ImageView leaving a gap on the right side.
    This is yet another instance where I want my ImageViews to resize themselves to fit the available space, resulting in a huge struggle to force these components into their proper straight-jacket. Anyone got any solutions for this?

    I'm afraid that also won't work, as the Image needs to be scaled, and the dimensions you are using are from the unscaled image.
    I've however am now using this class to get what I want, together with a stylesheet to specify the border it works and I get nice borders.
    package hs.mediasystem.util;
    import javafx.beans.property.BooleanProperty;
    import javafx.beans.property.ObjectProperty;
    import javafx.beans.property.SimpleObjectProperty;
    import javafx.geometry.Bounds;
    import javafx.geometry.Insets;
    import javafx.geometry.Pos;
    import javafx.scene.Node;
    import javafx.scene.image.Image;
    import javafx.scene.image.ImageView;
    import javafx.scene.layout.Region;
    import javafx.scene.layout.StackPane;
    public class ScaledImageView extends Region {
      private final ImageView imageView = new ImageView();
      private final StackPane effectRegion = new StackPane();
      private final ObjectProperty<Pos> alignment = new SimpleObjectProperty<>(Pos.TOP_LEFT);
      public ObjectProperty<Pos> alignmentProperty() { return alignment; }
      public final Pos getAlignment() { return this.alignment.get(); }
      public final void setAlignment(Pos pos) { this.alignment.set(pos); }
      public ScaledImageView(Node placeHolder) {
        getChildren().add(imageView);
        getChildren().add(effectRegion);
        getStyleClass().add("scaled-image-view");
        effectRegion.getStyleClass().add("image-view");
        if(placeHolder != null) {
          effectRegion.getChildren().add(placeHolder);
          placeHolder.getStyleClass().add("place-holder");
          placeHolder.visibleProperty().bind(imageView.imageProperty().isNull());
      public ScaledImageView() {
        this(null);
      @Override
      protected void layoutChildren() {
        Insets insets = effectRegion.getInsets();
        double insetsWidth = insets.getLeft() + insets.getRight();
        double insetsHeight = insets.getTop() + insets.getBottom();
        imageView.setFitWidth(getWidth() - insetsWidth);
        imageView.setFitHeight(getHeight() - insetsHeight);
        layoutInArea(imageView, insets.getLeft(), insets.getTop(), getWidth() - insetsWidth, getHeight() - insetsHeight, 0, alignment.get().getHpos(), alignment.get().getVpos());
        Bounds bounds = imageView.getLayoutBounds();
        effectRegion.setMinWidth(bounds.getWidth() + insetsWidth);
        effectRegion.setMinHeight(bounds.getHeight() + insetsHeight);
        effectRegion.setMaxWidth(bounds.getWidth() + insetsWidth);
        effectRegion.setMaxHeight(bounds.getHeight() + insetsHeight);
        layoutInArea(effectRegion,  0, 0, getWidth(), getHeight(), 0, alignment.get().getHpos(), alignment.get().getVpos());
      @Override
      protected double computePrefWidth(double height) {
        return 0;
      @Override
      protected double computePrefHeight(double width) {
        return 0;
      public final ObjectProperty<Image> imageProperty() { return imageView.imageProperty(); }
      public final Image getImage() { return imageView.getImage(); }
      public final void setImage(Image image) { imageView.setImage(image); }
      public final BooleanProperty preserveRatioProperty() { return imageView.preserveRatioProperty(); }
      public final boolean isPreserveRatio() { return imageView.isPreserveRatio(); }
      public final void setPreserveRatio(boolean preserveRatio) { imageView.setPreserveRatio(preserveRatio); }
      public final BooleanProperty smoothProperty() { return imageView.smoothProperty(); }
      public final boolean isSmooth() { return imageView.isSmooth(); }
      public final void setSmooth(boolean smooth) { imageView.setSmooth(smooth); }
    }

  • How to add white border around my Banner?

    Hello,
    I am trying to add a small border around my banner.
    I tried to code it in but it didnt seem to work. Not sure why?
    So i added just without the border.
    Any thoughts?
    Thank you!
    Ivan
    Here is the URL - http://www.the-electronic-cigarette.net

    Your header is defined as an id in style.css
    So, in your CSS:
    #branding {
              background: #ffffff url(images/sky.png) top left repeat-x;
              margin-bottom: -20px;
    Change to:
    #branding {
              border-color: fff;
      border-width: 3px;
              margin-bottom: -20px;
    That will create a 3 pixel border around the div.

  • How to draw a border around shape objects?

    How would I draw a border around something like an Ellipse2D object? I tried using using a BasicStroke in a sub-class of Ellipse but nothing showed.

    nvm, figured it out, I wasn't calling the draw method :)

  • How to achieve black border around a logo

    Hello,
    I am trying to do a parody of a Top Gun logo and have it done except for the border around the image. I know this is probably very simple and I've googled it but can't figured it out.
    Here is an example:
    http://www.redbubble.com/people/tgigreeny/works/7360099-top-gun-sundown-with-tomcat
    I want to create that black border/background colour and can't figure it out.
    Thanks for any help you can offer.
    Mary

    Well actually it is a bit more complex than I wrote
    1 You have to outline the text and
    2. united it with the art (color bars that hbe the same color)
    3. you have to give the object a stroke and drag it below the fill in the appearance panel
    4 the jet plane needs a fill of white
    5. the star needs a stroke with the stroke being draged below the fill in the appearaqnce panel
    6. then you group everything and give the group a sufficent weight stroke cover all the gaps
    7 and finally you drag the stroke you gave the group below the contents in the appearance panel (that means it is behind the groups contents the logo art.
    Like such ( You have to think this one out.)

  • I have never used my mac for desktop publishing before and am having some problems.  This sounds really dumb, but I can't figure out how to put a border around a text box.  Also, how do you edit the border, i.e. border color, thickness, etc. Help!

    I have never used my mac for desktop publishing before and am running into some real problems.  How do you put a border around a text box?  Can you edit the border - color, thickness, etc.?  Help!

    I think the best solution is to read Pages documentation, go to Help and you have a long list of options. Pages is capable of quite sophisticated things, some features are above Nisus or Mellel, so it is not so simple to summarize things in a few lines.

Maybe you are looking for

  • How can I add to an existing path using the pencil tool?

    This probably seems like a rather elementary question, but whenever I draw a path using the pencil tool, reselect it, hover over the endpoint, and the click and drag to extend the line off into a different direction, Illustrator will often (but not a

  • Unable to read metadata during the process or Slow?

    I am trying to write metadata to hundreds of files at a time. I need to me able to write and read back the updated metadata in the same process.Say like add the last name to the photo title then append the first name to the title. Each piece of data

  • Discuss settings of c5 browser

    when you go to default browser of this phone (nokia c5-00 3.2 mega pixel version) i.e. Options>>Settings>>Page [url=http://www.freeimagehosting.net/osaad][img]http://​www.freeimagehosting.net/t/osaad.jpg[/img][/url] http://www.freeimagehosting.net/os

  • **NEW TODAY** Digital Camera RAW Compatibility Update 2.4

    ...just do a "System Update" to get it the easy way! *http://support.apple.com/downloads/DigitalCamera_Raw_Compatibility_Update_24?sr=hotnews* About Digital Camera Raw Compatibility Update 2.4 This update extends RAW file compatibility for Aperture 2

  • Iphone demande une connection usb itunes

    Bonjours, Mon iPhone ne marche synchronisation ainsi que de juin DEPUIS Avec iTunes, L'Après l'Avoir Brancher la pomme s'eteignais et se rallumais. Je ai Fait en puissance + maison et il me Demande de me CONNECTEUR sur itunes. Itunes me dit de faire