How to center a layer ?

Hello friends.. I have created a pop up menu with a tool that
creates de code in Javascript. The I have setted it on a layer (if
I do not do it, the code displays in a different line of the
screen) .Well, it works, but the problem now is when I see the web
site on a wider screen... the layers and its content do not move,
but the rest of the page does, because it is all centered... the
result is a mess with the layers.... I have been trying to create a
table and attach the layer to it (to one of its cells) but seems
there is no way to do it.... what should I do ? please help ! thanx
a lot

Why, right here!
Change this -
</head>
to this -
<style type="text/css">
<!--
body { text-align:center; }
#wrapper { text-align:left; width:760px; margin:0
auto;position:relative; }
/* 760px will display on an 800px screen maximized browser
window without */
/* horizontal scrollbars. */
-->
</style>
</head>
change this -
<body ...>
to this -
<body ...>
<div id="wrapper">
and this -
</body>
to this -
<!-- /wrapper -->
</div>
</body>
and see if that helps.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Sw Jiten" <[email protected]> wrote in
message
news:emiq0u$adp$[email protected]..
> hello Murray... I certainly like your well known short
answers... except
> this time.... I did not understand... where was it
answered ?? thanx in
> advance...

Similar Messages

  • Photoshop Elements 7 - How do I align/center a layer?

    I'm using Photoshop Elements 7. How do I align/center a layer vertically or horizontally on a page?

    Are you adding objects to a blank layer? If so bring up the ruler then drag and drop guides to your center and any additional points. You can also set so that objects automatically snap to the guide lines.
    If you want to align visually similar images on top of each other, there is no auto-align like in CS5. The only work around is to lower the opacity of the top layer and then use the move tool to align by eye.
     

  • How to capture show layer and hide layer event in photoshop through a plugin???

    How to capture show layer and hide layer event in photoshop through a plugin???for mac

    Use the Listener plug-in found in the SDK to see how you can monitor the show/hide layer event. You can also use the Getter plug-in to show what information you can find out about the current state of Photoshop.

  • How to center text in shapes

    how to center text in shapes. specifically circles.  I want text to be centered directly in the middle

    A lot depends on what you mean by centered, the number of lines of text, the actual font, and whether there are descenders.
    Using vertical justification set to centered may or may not work for you, depending on the above factors, as it depends on the baseline, I believe, rather than the acutal glyph dimensions. You could try adding baseline shift, I suppose, to make fine vertical adjustments, or you can bite the bullet and use the old-fashioned method of two frames.

  • How to center the text displayed in a JList

    Hi,
    The width of the JList display area is wider than the text displayed. I tried to center the text displayed to make it look nicer. I had tried using "setAlignmentX(Component.CENTER_ALIGNMENT)" in my own ListCellRenderer class but did not work. Any idea how to center the text?
    Fai.

    Yes, I am using JLabels in my renderer and the following is the code:
    public class MyCellRenderer extends JLabel implements ListCellRenderer {
         private static final Color HIGHLIGHT_COLOR = new Color(0, 0, 128);
         public MyCellRenderer() {
              setOpaque(true);
              setIconTextGap(12);
         public Component getListCellRendererComponent(
              JList list,
              Object value,
              int index,
              boolean isSelected,
              boolean cellHasFocus)
              String entry = (String)value;
              setText(entry);
              setFont(new Font("Ariel", Font.BOLD, 18));
              setAlignmentX(Component.CENTER_ALIGNMENT);
              if(isSelected) {
                   setBackground(HIGHLIGHT_COLOR);
                   setForeground(Color.white);
              } else {
                   setBackground(Color.white);
                   setForeground(Color.black);
              return this;
    Can you point out where to implement the centering logic?
    Thanks,
    Fai.

  • How to set a layer invisible?

    Hi guys,
    Can you tell me how to set a layer invisible? Thanks.

    function hideAllLayers()<br />{<br />     forEach(document.layers, function(layer) {<br />          layer.visible = false;<br />     });<br />}<br /><br />function showAllLayers()<br />{<br />     forEach(document.layers, function(layer) {<br />          layer.visible = true;<br />     });          <br />}<br /><br />function forEach(collection, fn)<br />{<br />     var n = collection.length;<br />     for(var i=0; i<n; ++i)<br />     {<br />          fn(collection[i]);<br />     }<br />}

  • How to center a JFrame object on the screen?

    Does somebody know how to center a JFrame object on the screen. Please write an example because I'm new with java.
    Thank you.

    //this will set the size of the frame
    frame.setSize(frameWidth,frameHeigth);
    //get screen size
    Toolkit kit=Toolkit.getDefaultToolkit();
    //calculate location for frame
    int x=(kit.getScreenSize().width/2)-(frameWidth/2);
    int y=(kit.getScreenSize().height/2)-(frameHeigth/2);
    //set location of frame at center of screen
    frame.setLocation(x,y);

  • How to center in a Scene?

    I'm liking the layouts, but I haven't figured out how to center something in a Scene. It doesn't take LayoutInfo, for example.
    What's a good way to center a Component (a VBox in this case) in a Scene?
    Thanks,
    Dave

    You can do it the good old way:
    def IMAGES_WIDTH = 100;
    def IMAGES_HEIGHT = 100;
    var COLUMN_NB = 3;
    var ROW_NB = 3;
    var scene: Scene;
    var previews: Container;
    Stage
      title: "Test of Tile layout"
      scene: scene = Scene
        width: 500
        height: 500
        fill: Color.LAVENDER
        content:
          previews = Tile
            hgap: 10
            vgap: 10
            layoutX: bind (scene.width - previews.width) / 2
            layoutY: bind (scene.height - previews.height) / 2
            columns: COLUMN_NB
            content: for (i in [ 1 .. COLUMN_NB * ROW_NB ])
              ImageView
                image: Image
                  url: "{__DIR__}clock.gif"
                  width: IMAGES_WIDTH
                  preserveRatio: true
    }

  • How to create shape layer in Adobe After Effects Cs2 ?

    How to create shape layer in Adobe After Effects Cs2 ?

    THere is no such thing. Shape layers were introduced in CS3.
    MYlenium

  • How to add shape layer in Adobe After Effects Cs2 ???

    How to add shape layer in Adobe After Effects Cs2 ???

    You upgrade. You're too early for shape layers.

  • How to center the content in crystal report viewer?

    open crystal report viewer in winform, default at the left top
    after maxmium the winform window, content become at the center
    another odd thing is that i set window winform size 1208*1024 and crystal report view is fill
    then tried, content is not center any more
    How to center the content in crystal report viewer in code?
    Edited by: Mathew_666 on Oct 6, 2011 5:20 AM

    Since there is no control for center you'll need to do the math on your own. This is just a rough draft, but you'll get the idea.
    One of the things you'll need to figure out is your buffer to help you give a centered feel. We'll say that value is 50 in this case.
    Height
    int buffer = 50;
    int formHeight = 1000; // we'll assume a height of 1000 in this case
    int crystalTop = buffer;
    int crystalViewerHeight = formHeight - (buffer * 2); // buffer is at the top and bottom
    Width
    int formWidth = 1000; // we'll assume a width of 1000 in this case
    int crystalLeft = buffer;
    int crystalViewerWidth = formWidth - (buffer * 2); // buffer is at the top and bottom

  • How to center menu and add spacing between buttons?

    Here is my site: http://lauraportfolio.hostoi.com/index.html (If you are using Google Chrome you can right click and select "view page source" to see the html of the page)
    See how the menu button are justified the left of the light pink menu bar? How can I put them in the center?
    I would like to know how to center the menu, and then add spacing between the buttons.
    At one point I added spacing between the buttons using CSS padding, but when I did that the last menu button, "Graphics" ran off the pink menu bar and became invisible and all kinds of crazy ugly stuff!
    Below is what I beleive to be all of the CSS styling for the menu:
    #menubar
              width: 900px;
              height: 72px;
              padding: 0;
              background-color: transparent;
              background-image: url(transparentpink.png);
              background-repeat: repeat;
    ul#menu, ul#menu li
    { float: left;
      margin: 0;
      padding: 0;}
    ul#menu li
              list-style: none;
              padding-right: 0px;
              padding-left: 0px;
              margin-right: auto;
              margin-left: auto;
    ul#menu li a
              letter-spacing: 0.1em;
              display: block;
              float: left;
              height: 37px;
              text-align: center;
              color: #f0dbca;
              text-transform: none;
              text-decoration: none;
              background: transparent;
              font-family: bonvenoCF, verdana, Geneva, sans-serif;
              font-size: 150%;
              font-style: normal;
              font-weight: normal;
              font-variant: normal;
              padding-top: 29px;
              padding-right: 26px;
              padding-bottom: 6px;
              padding-left: 26px;
    ul#menu li a:hover, ul#menu li.selected a, ul#menu li.selected a:hover
              color: #F0DBCA;
              background-color: #F1836A;

    PART 1
    So as long as the width of the buttons plus the padding doesn't go over 900px it won't run off the page?
    Right.   The "box model" in CSS works like this:
    width + padding + border = actual visible/rendered width of box
    height + padding + border = actual visible/rendered height of box.
    PART 2
    And do you know how I can center the whole thin instead of it being left-aligned on the menu bar?
    You can't center floated menu items.  The best you can do is make your menu fit the entire width of the container (or as close as you can) as described in PART 1 above. 
    To center your #menu container, use margin:0 auto;
    To center text, use text-align:center on the #menu li a.
    Nancy O.

  • How to center site in browsers.  Currently aligned left.

    Please tell me how to center my website in the browser windows.  It is currently lining up completely to the left with a lot of white space on the right.
    What code do I add and where.  Thanks a lot.

    Go to Code View in DW.
    On line 240, delete
    <div align="center">
    Around line 25
    change
    <body>
    <table width="760" border="0" cellspacing="0" cellpadding="0">
    to
    <body>
    <div align="center">
    <table width="760" border="0" cellspacing="0" cellpadding="0">

  • How to resize a layer or picture

    I am brand new to anything PhotoShop. I have created a talk balloon that I plan on putting it on a photo. I have the text on it already. However, the area outside of the balloon must be tranparent. I made it transparent pixel by pixel. There must be an easier way. So my two questions are:
    1. How to make an area of a picture or layer transparent?
    2. How to resize a layer or .jpg picture or any picture that can be edited by PS Elements 12
    Tried to include the talk balloon file but it failed because of the content. What is wrong with " Hmmmmmm"
    "I think this one fits". It is a psd file.
    Bill

    1. How to make an area of a picture or layer transparent?
    Select the area where you want  it to be transparent and use the Eraser of various types from the tool bar. there are essentially three types:  Eraser Tool, Magic Eraser and Background Eraser.  The selection tool has also many types.
    How to resize a layer or .jpg picture or any picture that can be edited by PS Elements 12
    To resize any picture you simply go to:
    Image >> Resize
    Select what ever you want to resize the canvas or the Image.  If you are in PSD file then canvas resize might be appropriate but my answer is pretty general to give you the necessary options.  there is also the "Scale" of the image so you are spoilt for choices here.
    You just need to be careful not to0 degrade the image so much by resizing because pixels per inch changes and lower the amount per inch degrades the image;  This is what happens when you increase the size while reverse is the case if you resize it downwards.

  • How to center webpage in Visual Webpack?

    Hi there!
    I've a problem. How to center webpage in Visual Webpack? I've searched but i can't find the correct answer =)
    Does anyone knows how to do it. Please tell me.....
    Best regards,
    chel_mes

    Hi!
    If You need to center component on the page, You can set for style property position and set value in %. Or You can add Panel Layout, add necessary components to it and then set for style property of Panel Layout position and set value in %.
    Thanks,
    Roman.

Maybe you are looking for

  • Text Entry Box not showing all text

    I am creating a simple exercise where I would like the user to copy text from the course, paste it into word, and report back what the word count is.  I thought perhaps the Text Entry Box would be the best way to go, since if you click on the existin

  • Would like pdf files to open in Adobe/Preview not Quicktime

    Here is my issue...any suggestions on what to do/try? I have 10.2.8 with Quicktime 6.5.2 and Adobe 7.0(not 7.0.2) and can only get pdf files to open using Quicktime (this wouldn't be a problem except that only the first page can be seen and sometimes

  • IPod goes straight to "Ok to disconnect"

    Soon as I plug my gen 2 iPod into my windows machine it goes straight to "Ok to disconnect". This hasn't always been the case, as it's only started doing it today. I was putting some new tracks onto it and it didn't get all the way though before it e

  • Live streaming in lion 10.7.2 and safari 5.1.1

    yh, ok so i have lion 10.7.2, the latest of safari and a very good internet connection, my live streaming is not that encouraging, there must be a plug-in or something to enhance it ryt? can anyone share an advice on that please? thanks

  • Can I set up motion assisst to work in distance instead of pulses?

    I am trying to motion control with a MID-7604 Driver and Motion Assist software. I would like to work in mm on axis 1 and degrees on axis 2 but I don't see a way to change the setup from pulses to distance.