Program Default Layer Writing Question

People...
An internet friend of mine in another forum helped me solve a
parent (container) layer centering problem. I had created a large
"Layer 1"...nested Layers 2, 3 & 4 within Layer 1...&
wanted Layer 1 to slide to the center of any browser window, with
2,3 & 4 not changing absolute position relative to Layer 1. The
solution was:
<div id="Layer1" style="position:relative; width:285px;
height:311px; margin: 0 auto;">
<div id="Layer2" style="position:absolute; width:47px;
height:115px; z-index:1; left: 226px; top: 120px;"><img
src="layer2.jpg" width="58" height="133"></div>
<div id="Layer3" style="position:absolute; width:131px;
height:115px; z-index:2; left: 3px; top: 3px;"><img
src="layer3.jpg" width="158" height="189"></div>
<div id="Layer4" style="position:absolute; width:176px;
height:71px; z-index:3; left: 94px; top: 130px;">;"><img
src="layer4.jpg" width="158" height="189"></div>
</div>
where the container (Layer 1) was assigned relative
positioning & centered by auto margins...& the nested
layers (2,3 & 4) remained absolute; & inline
...but...
...he also tells me that inline styles are not a good idea.
Everybody tells me that inline styles are not a good idea.
But no one tells me why.
So...3 questions:
1) Why are inline styles not a good idea...& is that
relative (pardon the pun) to the way I am now centering my layer
layout?
2) Is there a way to configure Dreamweaver to write layer
code (i.e., user draws in the layer...Dreamweaver writes the code)
other than inline?
3) On all of my existing page layouts that consist of
multiple layers (each one housing an image or text)...that I now
want centered...how do I nest those layers in a large container
layer? (the above centering solution was from a test page I created
from scratch...& the subsequent layers were nested as I went. I
now need to go back to existing pages & center the layout.)
Thanks very much,
mark4man
Dreamweaver MX (6.0)

mark4man wrote:
>
People...
>
> An internet friend of mine in another forum helped me
solve a parent
> (container) layer centering problem. I had created a
large "Layer 1"...nested
> Layers 2, 3 & 4 within Layer 1...& wanted Layer
1 to slide to the center of any
> browser window, with 2,3 & 4 not changing absolute
position relative to Layer
> 1. The solution was:
>
> <div id="Layer1" style="position:relative;
width:285px; height:311px; margin:
> 0 auto;">
> <div id="Layer2" style="position:absolute;
width:47px; height:115px;
> z-index:1; left: 226px; top: 120px;"><img
src="layer2.jpg" width="58"
> height="133"></div>
> <div id="Layer3" style="position:absolute;
width:131px; height:115px;
> z-index:2; left: 3px; top: 3px;"><img
src="layer3.jpg" width="158"
> height="189"></div>
> <div id="Layer4" style="position:absolute;
width:176px; height:71px;
> z-index:3; left: 94px; top: 130px;">;"><img
src="layer4.jpg" width="158"
> height="189"></div>
> </div>
>
> where the container (Layer 1) was assigned relative
positioning & centered by
> auto margins...& the nested layers (2,3 & 4)
remained absolute; & inline
>
> ...but...
>
> ...he also tells me that inline styles are not a good
idea.
>
> Everybody tells me that inline styles are not a good
idea.
>
> But no one tells me why.
>
> So...3 questions:
>
> 1) Why are inline styles not a good idea...& is that
relative (pardon the pun)
> to the way I am now centering my layer layout?
Because the main advantage of using css is precisley to
remove the styles from the html markup, and
place it instead in an external style sheet. This allows you
to:
1.centralise the code that defines your layout in one place,
and thus have only one file to deal
with to update/change all your pages layouts.
2.Think of layout in a more precticall way by dividing layout
styles into coherent styles
definitions that you can then combine in various ways to
style various heml elements.
3.Keep your html markup clean and simple
>
> 2) Is there a way to configure Dreamweaver to write
layer code (i.e., user
> draws in the layer...Dreamweaver writes the code) other
than inline?
maybe in DM8, but I don't think so, definitely not in MX6.
Side note: using Layers for layout is not a good practice
anyways, for many reasons, see below
>
> 3) On all of my existing page layouts that consist of
multiple layers (each
> one housing an image or text)
what will happen if the user increases the text size in their
browser preferences? Try it: the text
will overflow the layers, and your page will look horrible,
with text overlapping images or other
text. Because you are using Layers. This would not happen if
you were using relative divs or tables
with no fixed height.
>...that I now want centered...how do I nest those
> layers in a large container layer? (the above centering
solution was from a
> test page I created from scratch...& the subsequent
layers were nested as I
> went. I now need to go back to existing pages &
center the layout.)
>
In short, consider NOT using Layers at all.
Use tables (easier) or realtively positioned divs (harder but
often more practical in the long run).
> Thanks very much,
>
>
mark4man
> Dreamweaver MX (6.0)
>
>
seb ( [email protected])
http://webtrans1.com | high-end web
design
Downloads: Slide Show, Directory Browser, Mailing List

Similar Messages

  • How do I use "Generate" to produce multiple file formats from the "Default" layer?

    I have a Photoshop file with ~50 layers, each with unique file names for images I want to create.  I want to produce in both .png and .svg file formats for each layer.
    Rather than adding the code to each layer individually can multiple file formats be assigned on the "Default" layer? What is the correct syntax to do that?
    Something like:
    default  100% .png, svg/ *.svg
    ... to generate the .png versions and then also create a folder called "svg" that contains all the .svg versions of those images?

    Dear Thomas,
    I entered TM and found the sparsebundle under the Filesync library. However, it appears NOT to be recoverable and I tried double clicking on it but it doesnt do anything other than show a summary of what it is.
    By the way, I really do appreciate your comments and agree completely. Something strange happened with my syncing of Idisk (which is set to "automatic"). It has been working fine for years. But for some reason, it stopped two days ago and did not let me know. When I tried to put something manually on it (through drag/drop), it never showed up on the Idisk on the cloud which made me notice and check it out by going to Mobileme through the browser. I then went to the tech service for Idisk and they explained that something probably got corrupted so just hit STOP syncing and then hit Automatic again. Which is what I did. Then everything from the cloud went to my Idisk on my computer and for some reason, the latest version of my excel spread sheet for attendance showed two days ago, not last night. so I lost wed/thursday classes. I KNOW it was on my Laptop which is backed up to TM every morning.. Thats why I believe that the latest file IS on my TM backup for this morning. But I can't get to it. Any other help would be appreciated.
    Skip

  • Since updating to Version 5 EU1.1, Firefox does not open from Outlook email links despite having all program defaults - how can I fix this, please?

    Clicking on a weblink in an Outlook email fails to open the website in Firefox even when the browser is already open. Firefox is set as default browser. There was no problem with this before the latest Firefox update a few days ago.
    I have tried changing program defaults to Internet Explorer (email links worked) and then back again to Firefox, but email links still don't work.
    aga

    Clicking on a weblink in an Outlook email fails to open the website in Firefox even when the browser is already open. Firefox is set as default browser. There was no problem with this before the latest Firefox update a few days ago.
    I have tried changing program defaults to Internet Explorer (email links worked) and then back again to Firefox, but email links still don't work.
    aga

  • Changing default layer length?

    How do I change the default layer length, when inserting an image into a composition?
    (I always seem to insert images, and forget that the layer length (time) is very short, then wonder why I can't see it).
    It's a minor thing, but help with this so I don't have to go spend 20 minutes Googling would be much appreciated.

    Preferences --> Import --> Default Duration
    Mylenium

  • Help with a Program I am writing!  Please!

    Hello All,
    This is my first post...I hope to find some answers to my program I am writing! A couple things first - I am 17, and have designed a comp. science class for myself to take while a senior in high school, since there was not one offered. My end of the 2nd term project is to write a program that encompasses the information I have learned about for the past two terms. I know the very basics, if that. Please help!
    My program involves the simple dice throwing program, 'Dice Thrower' by Kevin Boone. The full text/program write out can be found at:
    http://www.kevinboone.com/PF_DiceThrower-java.html
    I am hoping to add a part to this program that basically tells the program if the dice show doubles, pop up a little GUI window that says "You are a Winner! You Got Doubles!"
    I was thinking as I finished chapter 7 in my text book, that either an 'if/else' or 'switch' statement might be the right place to start.
    Could someone please write me a start to the program text that I need to add to 'Dice Thrower', or explain what I need to do to get started! Thank you so much, I really appreciate it.
    Erick DeVore - Eroved Kcire

    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.JLabel;
    import javax.swing.JFrame;
    import java.awt.FlowLayout;
    import java.awt.Color;
    public class DiceThrower extends Applet
    Die die1;
    Die die2;
    public void paint (Graphics g)
         die1.draw(g);
         die2.draw(g);
         g.drawString ("Click mouse anywhere", 55, 140);
         g.drawString ("to throw dice again", 65, 160);
    public void init()
         die1 = new Die();
         die2 = new Die();
         die1.setTopLeftPosition(20, 20);
         die2.setTopLeftPosition(150, 20);
         throwBothDice();
         // Erick's Program Insert below
         public class WinnerGui extends JFrame;
      public WinnerGui();
        super ("You Are The Winner with GUI");
        Container c = getContentPane();
        c.setBackground(Color.lightGray);
        c.setLayout(new FlowLayout());
        c.add(new JLabel("You're a Winner! You Got Doubles!"));
            //End Erick's Program insert
         DiceThrowerMouseListener diceThrowerMouseListener =
              new DiceThrowerMouseListener();
         diceThrowerMouseListener.setDiceThrower(this);
         addMouseListener(diceThrowerMouseListener);
    public void throwBothDice();
         die1.throwDie();
         die2.throwDie();
         repaint();
    class Die
    int topLeftX;
    int topLeftY;
    int numberShowing = 6;
    final int spotPositionsX[] = {0, 60,  0, 30, 60,  0,  60};
    final int spotPositionsY[] = {0,  0, 30, 30, 30,  60, 60};
    public void setTopLeftPosition(final int _topLeftX, final int _topLeftY)
         topLeftX = _topLeftX;
         topLeftY = _topLeftY;
    public void throwDie()
         numberShowing = (int)(Math.random() * 6 + 1);
    public void draw(Graphics g)
         switch(numberShowing)
              case 1:
                   drawSpot(g, 3);
                   break;
              case 2:
                   drawSpot(g, 0);
                   drawSpot(g, 6);
                   break;
              case 3:
                   drawSpot(g, 0);
                   drawSpot(g, 3);
                   drawSpot(g, 6);
                   break;
              case 4:
                   drawSpot(g, 0);
                   drawSpot(g, 1);
                   drawSpot(g, 5);
                   drawSpot(g, 6);
                   break;
              case 5:
                   drawSpot(g, 0);
                   drawSpot(g, 1);
                   drawSpot(g, 3);
                   drawSpot(g, 5);
                   drawSpot(g, 6);
                   break;
              case 6:
                   drawSpot(g, 0);
                   drawSpot(g, 1);
                   drawSpot(g, 2);
                   drawSpot(g, 4);
                   drawSpot(g, 5);
                   drawSpot(g, 6);
                   break;
    void drawSpot(Graphics g, final int spotNumber)
         g.fillOval(topLeftX + spotPositionsX[spotNumber],
              topLeftY + spotPositionsY[spotNumber], 20, 20);
    class DiceThrowerMouseListener extends MouseAdapter
    DiceThrower diceThrower;
    public void mouseClicked (MouseEvent e)
         diceThrower.throwBothDice();
    public void setDiceThrower(DiceThrower _diceThrower)
         diceThrower = _diceThrower;
    }That was what I have dwindled it down to, using my knowledge, as well as others' expertise...however I am listening to what you say, and get these messages when I try to compile in the CMD:
    line 63 - illegal start of expression (carrot at p in public)
    line 63 - ; expected (carrot at c in class)
    line 63 - { expected (carrot at ; at end of line)
    line 65 - illegal start of expression (carrot at p in public)
    line 83 - <identifier> expected (carrot as: (this) ) -- I don't even know what that means ^
    line 84 - invalid method declaration; return type required (carrot at a in add)
    line 84 - <identifier> expected (carrot like this: [see below])
    addMouseListener(diceThrowerMouseListener);
    ^
    line 84 - ) expected (carrot is one place over from previous spot [see above]
    line 93 - illegal start of expression (carrot at p in public)
    I know this seems like a lot of errors, but believe it or not, I actually had it up in the high teens and was able to fix some of them myself from going by previous examples, as well as looking things up in my text book. If anyone has any suggestions concerning the syntax errors of the code, please please let me know and I will work my hardest to fix them...thank you all so much for helping.
    Erick

  • How to make green the default layer colour?

    With no documents open, the layers panel is blank. How can I therefore access it? I have alot of pmd files I now open in cs4, but need a green default layer. I'm beginning to think this cannot be done. Any thoughts? please and thanks

    A One-line javascript to set the color of layer #1 to green
    (But I bet Harbs could make it perform "on open", which I've steered well away from so far.)
    app.activeDocument.layers[0].layerColor = UIColors.GREEN;
    If you have more than one layer and want to have the full range of UI supplied greens, try this:
    var colors = [ UIColors.GREEN, UIColors.DARK_GREEN, UIColors.GRASS_GREEN, UIColors.GRID_GREEN, UIColors.OLIVE_GREEN ];
    for (i=0; i<app.activeDocument.layers.length; i++)
         app.activeDocument.layers[i].layerColor = colors[i % colors.length];
    Apart from that, it's also possible to use RGB colors to set the layer to any tint of green you can imagine.
    You like being green? I've heard it isn't easy.

  • Preferences, Project, can't change project duration or default layer duration

    Having trouble changing the project duration or default layer duration in Preferences. I change them and restart Motion and nothing is changed.
    Probably overlooking something. Help

    There are a couple of ways to lengthen (or shorten) a project once you've started the project.
    1) Select the Project "layer" at the top of the Layers list, then in the Inspector, select the Properties pane and look down for Duration. You can type in the value needed for the length of project. You have the option of using Timecode, Frames, or Seconds.
    2) Set the Canvas "clock" (/playhead position) to the Project length. To do that, click on the clock icon and the "time" should look like 12:15. Click and drag up (or down) on the time value to lengthen or shorten the project.
    When you start Motion and are presented with a Project picker, in the upper right corner of the dialog, you can set the length required (Duration) for your project(s).  Once you start that project with that time length, Motion will remember and all subsequent projects will be created with that time length until you change it at that location again.  I actually haven't set the default project duration in preferences in quite a long time.  However, if Motion is not remembering the project length setting, you might need to Quit Motion, then hold down the Command and Option keys and restart Motion (that should delete preferences and reset Motion to its defaults).

  • Hello my company Favorites I would like to first thank you for this wonderful program I have a question about the program. How can I Arabization program In your response to the spread accept me thanks and respect

    Hello my company Favorites I would like to first thank you for this wonderful program I have a question about the program. How can I Arabization program In your response to the spread accept me thanks and respect

    Hi ,
    You might want to refer the following link to find your serial number and activate your software .
    Here is the link for the same.
    https://helpx.adobe.com/x-productkb/global/find-serial-number.html
    Let us know how it goes .We'll do the best possible to get your issue fixed.
    Regards
    Sukrit Dhingra

  • Setting default layer visibility in Acrobat 9 Standard

    I just installed Acrobat 9 Standard after getting a Win7 x64 computer.  My old computer had Acrobat 7.5 Pro.  One of the features I need is the ability to change the default visibility of layers created by a PDF export from another program.  When I view the layer properties in Acrobat, everything is dimmed out.  Is the ability to interact with the layer properties a feature I can turn on somewhere?

    Perhaps you will need Acrobat 9 Professional or Professional Extended.
    The Acrobat product comparison page indicates such for:
    Convert Autodesk® AutoCAD®, Microsoft Visio, and Microsoft Project files to PDF
    with one-button ease, preserving document layers in Visio and AutoCAD and object data in Visio*
    http://www.adobe.com/products/acrobat/matrix.html
    Be well...

  • Opening documents with custom layer structure, especially default layer unlocked...

    Hi, is it possible to open documents such as jpg screenshots which are apparently a locked layer by default, as instead an unlocked layer?
    Would it even be possible/easy to have a method of opening such documents with the following layers:
    1 original image (unlocked)
    2 blank transparent layer
    3 white locked background
    4 group folder called 'archive' with a copy of the original image, with the group set to invisible
    Could a droplet be made to open documents with such a "precreated" layer set-up?
    For example, I would like to take a screenshot or scan, drag it onto a droplet, and have it open with the layer structure outlined above.
    Thank you thank you thank you...

    "The image is NOT locked."
    Shesh whatever you call it the image the background the initial layer "the so called layer" I would just like to change its default opening to UNLOCKED so at minimum, as I have said four times now, it can be placed in a folder called "Archive" without having to f'ing unlock it...scripting additional opening actions in addition to that at this point must be beyond your imagination
    "Have you tried working on the so called locked layer?"
    HAVE YOU READ THE ORIGINAL QUESTION????
    Working on the background layer is not my primary concern, organizing layers automatically at the start of a workflow is...but nevertheless...erasing part of the background in order to reveal imported images or drawings created beneath it on new layers requires the background be unlocked (so erased sections are transparent rather than black), changing layer order requires unlocking, moving the background on a resized canvas requires unlocking....and of course placing it within a folder requires unlocking -- what the hell is the advantage of it being default locked?? why isn't this optional?
    I can't imagine people working on complex images with multiple folders and forty plus layers in various folders and such -- nevertheless consistently want to leave the background layer just sitting there hanging out in its default locked state. I'm ALWAYS unlocking the damn layer...if only, for the FIFTH TIME, for organizational purposes (to change its layer order and place it within a folder).
    SHESH!
    "Methinks..." Oh please...next time read the question.

  • Can I create and print PDF using a QB64 program I am writing?

    I am obviously not a programmer, but I am writing a program in QB64 for my own use at home. Right now the program generates a text file. Is there a way to have to program generate a PDF file without going to a second program. I currently have to open Wordperfect and generate the PDF report. Thank you for any assistance.

    What OS? Have you tried a repair and updates from the HELP menu? The updates may be the key.

  • How to make a layer as default layer?

    Hi,
    I have a layer that I used in every project of Adobe Photoshop and in that case I used to re-design that layer or copy the image of layer from another project. Is there any way to make that layer default that when I shall start a "new" project, that layer automaticaly fix at layer panel (same as first layer) ?

    @shansajid,
    I am moving this thread to the Photoshop General Discussion forum, where it will get more visibiliy. (This forum is specifically intended for the Edit your first photo page.)
    Regards,
    Randy Nielsen
    Product Integration Manager, Creative Cloud Learning and Training
    Adobe

  • Payment list program default

    Hi Experts,
    I have developed a custom program to generate payment list / proposal list. Now I need to change the default program RFZALI20 during payment run - edit - payment list / proposal list.
    Anyone could help me ?
    Regards,
    Melissa

    Please check relevant User Exit RFFOX100,RFFOX101,RFFOX102,RFFOX103,RFFOX104,RFFOX105,RFFOX200 and also find posted forum tread for your needful.
    F110 payment list program: RFZALI20
    Regards,
    Santosh

  • Java programming language main method question?

    Hello everyone I am quite new to the Java programming language and I have a question here concerning my main method. As you can see I am calling 4 others methods with my main method. What does the null mean after I call the method? I really don't understand is significance, what else could go there besides null?
    public static void main(String[] args)
              int cansPerPack = 6;
              System.out.println(cansPerPack);
              int cansPerCrate = 4* cansPerPack;
              System.out.println(cansPerCrate);
              have_fun(null);
              user_input(null);
              more_java(null);
              string_work(null);
         }Edited by: phantomswordsmen on Jul 25, 2010 4:29 PM

    phantomswordsmen wrote:
    ..As you can see I am calling 4 others methods with my main method. 'Your' main method? Your questions indicate that you did not write the code, who did?
    ..What does the null mean after I call the method?.. 'null' is being passed as an argument to the method, so there is no 'after the method' about it.
    ..I really don't understand is significance, what else could go there besides null? That would depend on the method signatures that are not shown in the code snippet posted. This is one of many reasons that I recommend people to post an SSCCE *(<- link).*
    BTW - method names like have_fun() do not follow the common nomenclature, and are not good code for a newbie to study. The code should be put to the pointy end of your sword.

  • Default Warehouse Qty Question

    We have a Crystal Report 2008 report that is used for daily, monthly and yearly total items sold and total items returned and any date range that is pulled the last column "In Stock" needs to give current inventory qty in the default warehouse.
    Currently we get correct output only on the warehouse we define on ({OITW.WhsCode} in "123"). The warehouse "123" defined and {OITM.OnHand} - {OITW.OnHand} subtracts the defined Warehouse from the onhand qty if I understand this correct... Issue with this is if there is one item with qty in the "123" warehouse and another item with qty in the "return" warehouse it will only give me the correct qty based on the warehouse that is defined; the other qty output will be the default warehouse plus the other warehouse qty which is incorrect.
    Question is: how do we get the current qty in the default warehouse only. There are four warehouses total... Is there a formula that we could create that would give us the correct output based on the default warehouse?  Any advice or help would be appreciated!
    Current report information:
    Report has two Formulas and two Parameters and it is Grouped by "OINM"."ItemCode"
    Record Selection
    {OINM.CardCode} <> "BPname02" and
    {OITB.ItmsGrpNam} = {?Group Selection} and
    {OINM.TaxDate} = {?date} and
    {OINM.TransType} in [14, 15] and
    {OITW.WhsCode} in "123"
    --This Formula is used for the onhand qty "In Stock" output.
    {OITM.OnHand} - {OITW.OnHand} 
    --Column Headers on Report
    "Item", "Description", "Grp", "Qty Return", "Qty Sold", "In Stock"
    --SQL Query taken from Crystal Report
    --Some of the select below items are suppressed...
    SELECT "OINM"."ItemCode", "OINM"."Dscription", "OINM"."TransType", "OINM"."OutQty", "OINM"."InQty", "OINM"."TaxDate", "OITW"."OnHand", "OITB"."ItmsGrpNam", "OITM"."OnHand", "OINM"."CardCode", "OITM"."ItemName", "OITW"."WhsCode"
    FROM   (("Prd_DB"."dbo"."OITW" "OITW" INNER JOIN "Prd_DB"."dbo"."OINM" "OINM" ON "OITW"."ItemCode"="OINM"."ItemCode") INNER JOIN "Prd_DB"."dbo"."OITM" "OITM" ON "OINM"."ItemCode"="OITM"."ItemCode") INNER JOIN "Prd_DB"."dbo"."OITB" "OITB" ON "OITM"."ItmsGrpCod"="OITB"."ItmsGrpCod"
    WHERE  "OINM"."CardCode"<>N'BPname02' AND "OITB"."ItmsGrpNam"=N'GrpSelected' AND ("OINM"."TaxDate">={ts '2014-05-05 00:00:00'} AND "OINM"."TaxDate"<{ts '2014-05-06 00:00:00'}) AND ("OINM"."TransType"=14 OR "OINM"."TransType"=15)
    ORDER BY "OINM"."ItemCode"

    hi Vernon,
    are you using sap business one? if so, please post this question to the reporting and printing forum here which is for business one users. you'll get a quicker response on your question there.
    -jamie

Maybe you are looking for

  • Safari 8.0 Open in New Tab not working correctly

    Hard and Software: MacBook (13-inch, Aluminum, Late 2008), 2 GHz Intel Core 2 Duo, 2 GB 1067 MHz DDR3, NVIDIA GeForce 9400M 256 MB OS X Yosemite 10.10 clean install, iCloud enabled, Safari 8.0 Problem description: When I open any type of link in a ne

  • Xmlcg

    I was under the impression that xmlcg would provide both set and get methods for each of the elements/attributes. However this does not seem to be the case as only set and add methods are generated. Please would someone confirm this and also mention

  • How can I create a VM in Brazilian Data Center

    I am working on a Proof of Concept to use Cloud Services in Latin America. What I am trying to do is setup an FTP Site in the Azure Brazilian Data Center. So how can I create a VM in the Brazilian Data Center- I do not see a way to do this through th

  • Mapping one to many

    I spoke about this in another thread. however, it was not the main topic of the thread so I thought I should start a thread dedicated to this issue. As you can see I have a loop connecting three fields on the left side of my map to the AMT parent on

  • Cannot build B2G (BRANCH=v2.0) for alcatel one touch fire. pull failed

    I'm trying to build B2G for alcatel one touch fire. after cloning B2G I ran BRANCH=v2.0 ./config.sh hamachi and then on running ./build.sh I get the following: Pulling "libOmxWmaDec.so" cp: cannot stat '../../../backup-hamachi/system/lib/libOmxWmaDec