Only using AP Divs on a page? CS4

I'm structuring a page right now and was curious if AP Divs are generally just used as containers? Or can I get away with using all AP Divs, structured one on top of the other- I have a header, content, and footer AP Divs.
*I'm doing a liquid layout as well.

In reply to Dunbaraj,
yes use <div>s to lay out the page and position and style those <div>s using CSS.:
http://www.w3schools.com/css/
In reply to Murray *ACP*,
Hope you can see that the tongue in cheek over, over enthusiast response was an attempt to HIGHLY discourage the use of absolute positioning in laying out Web pages. The OP was focused strictly on AP (or more appropriately, PA) divs as containers… no mention of using a declared position for other elements..
Can’t tell you how many posts we get over at
http://www.webdeveloper.com/forum/index.php
asking why their page / menus, whatever don’t align correctly. The use of absolute positioning is real problem with beginner Web developers. While it may seem intuitive and easy to do so, the parent element thing throws them a curve, along with the fact that’s its just not good practice to do page layout that way.
“either misleading or wrong.  For example, if an absolutely positioned element is the child of an absolutely positioned element, that child will be located relative to the ancestor's location, not the 'browser window'”
Sorry if my explanation of the “parent rule” was not clear.
"The thing missing from your positioning is that unless the parent element also has a declared position, the child will do 1 of 2 things"
In other words, if the parent does NOT have a declared position, this is what will happen.
If position:relative, it will position as desired but space will be left as though that element was still in the natural flow. So you may move the 500 X 100 element down and over, but a 500 X 100 space will be left, as though it was still there.
So:
#child {
width: 400px;
height: 200px;
position: relative;
left:100px;
top:100px;
background-color:#cccccc;
will move to the left 100px and down 100px, BUT will also leave a blank space where #child would have been if left in the natural flow.
And
#child {
width: 400px;
height: 200px;
position: absolute;
left:100px;
top:100px;
background-color:#cccccc;
child is positioned relative to browser window and that position does not change even if window contracts or expands.
This parent rule applies to both AP and RP <div>s and is the foundation of learning to correctly use declared positioning.
But I appreciate your comments and discussion!
Best wishes,
Adninjastrator

Similar Messages

  • Limitations of using AP Div Tags in page design

    I have recently set up a complex page using AP Div Tags.  It looks great, and behaves exactly how I want it to.  I did this because it was quick and simple to do (I haven't used DW for about 8 years, and a lot has changed), and to take advantage of the show/hide behaviour, as there are up to 8 divs stacked one upon another, and also because the page was designed as a presentation tool, and was never intended to be accessible via the internet, so I wasn't worrying about browser compatibility, but only what it looked like on the PC it was designed on.
    HOWEVER...
    Now my boss likes the page so much, he's talking about making it publicly accessible.  What are the limitation of having used AP Divs to lay out my page, and should I consider redesigning to ensure this is going to look how I want it to on other people's PCs?  I'm afraid this is going to turn into another *** packet design that ends up in production...

    You could spend hours on the Adobe Developer site reading about best practices....
    http://www.adobe.com/devnet/dreamweaver/
    But best practices in DW are really only best practices in HTML and CSS, and a good place to start there would be here - http://www.w3schools.com.
    As you mention, your choice of layout methods may, in fact, be the best one for your purposes, although you do not have to use absolutely positioned containers to do this show/hide javascript thing.  In this regard, you may find this DW extension to be a REAL TIME SAVER -
    http://projectseven.com/extensions/listing.htm --> Auto ShowHide
    It will keep track of every element that has been show using it (rather than the DW native behavior), and when one of those tracked containers is shown, it automatically hides all of the others.

  • Double page spread - but only using 1 and a half pages

    Hi there smart people who use Aperture.
    I'd like to create a double page spread in an Aperture book where the image only goes half way across the second page. Is this possible? I can't seem to enlarge an image so it crosses onto the second page, and I can't seem to reduce the size of an image that's inserted into a double page spread. Hope that makes sense and someone can help.
    Thanks,
    gtmonkey

    Hi again RB - thanks again for helping.
    I can't seem to open your page today, but I was able to see it last night and confirm that you can do what I'm trying to do.....lucky guy!
    I'm still using Aperture 2.1 - maybe that's why I can't resize those pages?
    However, I have discovered that if I drop a new image frame over the old one on the double page spread, I can play with that as much as I want. I can then delete the old image frame (the one that wouldn't resize) and get the result I want. That should do the trick.
    Thanks again for your help though....
    GT

  • Using PrinterJob to print a Component only uses 2/3 of the page

    Okay, I'm now trying to get printing working with my app.
    I have a JFrame that contains several custom components.
    I invoke the print like this:
                   PrinterJob job = PrinterJob.getPrinterJob();
                   job.setPrintable(GraphWindow.this);
                   if (job.printDialog()) {
                        try {
                             job.print();
                        } catch (PrinterException pe) {
                             logger.error("actionPerformed: Print Error: ", pe);
                   }The Printable interface is implemented like this:
              if (pageIndex > 0) {
                   return (NO_SUCH_PAGE);
              } else {
                   Graphics2D g2d = (Graphics2D) graphics;
                   logger.debug("print: clip=" + g2d.getClipBounds() + ", devbounds=" + g2d.getDeviceConfiguration().getBounds());
                   g2d.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
                   RepaintManager currentManager = RepaintManager.currentManager(this);
                   currentManager.setDoubleBufferingEnabled(false);
                   paint(g2d);
                   currentManager.setDoubleBufferingEnabled(true);
                   return (PAGE_EXISTS);
              }When the printout comes out, it covers about 2/3 the page in each dimension. It could easily be larger and still fit.
    The print log message looks like this:
    print: clip=java.awt.Rectangle[x=15,y=15,width=582,height=762], devbounds=java.awt.Rectangle[x=0,y=0,width=5100,height=6600]
    When the paint() method is called, the window is still it's normal screen resolution - so my code paints in that res. This results in some chunky output on the printer.
    So, the final questions are:
    1) Why is the Clip (and probably the transform) setup for something that is noticeably larger than the Frame being printed? I'd like to force it to "Fit to Page". I'm guessing it's doing some magic DPI calculations, but I don't see how I can change those.
    2) Is there any way I can increase the print resolution? Somehow I doubt I can set my Frame size to be 5000x6000 and have it work properly.

    I don't know about java... but the trick in VB was to create an invisible form in the background, and print that via Form.PrintForm()... but VB allowed you to create a form any size you liked... even if it was 100 times the current screen size.
    Interesting little problem...
    PS: I'd only resort to an invisible Frame in the absence of a better solution... ie: pray for a response from someone who actually knows what they're talking about ;-)

  • Only use htmldb_item once per page?

    Not sure how to word this correctly.
    Am I correct in assuming that I can only use the htmldb_item once per page? I know it can be used multiple times within the tabular report, but if I used it again on the same page in a different region, how would it be distinguishable from a previous iteration?
    Say I have two regions on a page, both with manually created tabular reports using the htmldb_item syntax. It's not apparent to me (if there is a way), on how using the htmldb_application syntax to distinguish between region 1 and region 2. They both would wind up with g_f01, etc. variables, but I don't see any other characteristics to differentiate between them, like maybe passing a region (or any other) name to the htmldb_item construct so the the arrays could be distinguished more?
    This is all new to me, I've been out of loop for the last 8 years doing manual data cleanup from an old database that was basically a spreadsheet (a real mess!), so forgive me again if I'm missing anything obvious or just way off base.
    Thanks.

    Bill,
    You are correct that you want to avoid populating values in the same global arrays g_f0n more than once by creating tabular forms in two regions. It would be hard to distinguish from which region values in a particular array came. You can, however use g_f01..g_f10 for one region and then g_f11..g_f20 for another region.
    This assumes you're doing manual process of these arrays, because the processes used by the wizard can only deal with one tabular form per page.
    Sergio

  • Is there a format for a file that I can use for attaching a one page document with photos embedded that will open in everyone's email automatically?   I've tried PDF and Word, but worked only in Mail.  Lost formatting when just copied and pasted in email.

    Is there a format for a file that I can use for attaching a one page document with photos embedded that will open in everyone's email automatically?   I've tried PDF and Word, but PDF worked only in Mail.  Word worked in nothing.  I also tried copying and pasting the document but lost all formatting when just copied and pasted in email.  Is there a way to do this?

    Are you sure PDF won't work? It should as what you're trying to do is pretty much what it is designed for (PDF - Portable Document Format). On a Mac anywone who receives the file should be able to see it in all its page layout glory by using the app Preview or Adobe Reader. Same on a PC, the file should be viewable as a PDF file using Adobe Reader and probably some other viewer (don't use PCs so not sure what other apps).
    What application are you creating the file in and are you sure you're exporting it correctly in PDF format, fonts and images embedded?

  • Why does my printer only use 25% of the page and shrink to fit?

    when i print certain things it only uses 25% of the page. It is so small i can't read it. If i go to print preview and modify the size, it puts it on multiple pages. I can't figure out how to change any settings.

    Firefox extracts the paper size information from your Windows printer settings, so that's the first thing to check. In the print dialog, if you click the Properties button and review the dialog for your printer, do you have a small paper size selected and can you update it?
    If Windows is correct and Firefox is mistaken, you can reset the stored paper size using the about:config preferences editor.
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box that appears above the list, type or paste '''paper''' and pause while the list is filtered
    (3) Look for your printer's paper-related settings and then right-click and choose Reset for each (e.g., size, height, width, etc.).
    If you return to your document and try Print Preview, does Firefox compute the correct size?
    More troubleshooting suggestions: [[Fix printing problems in Firefox]]

  • My i-tunes Wish List only shows the first page, it used to show all the pages- like the next page button is disconnected?

    My i-tunes Wish List only shows the first page- it used to show all the pages. Its a little like the next page button is disconnected?
    Any ideas?
    thanks
    Simon

    I would say all types. Any kind of document/ file that has multiple pages, I can't get to the next page.

  • Using WEB Output HTML Gallery and uploading using ftp upload the HTML page views correctly but images only display the alt tag?

    Using WEB Output HTML Gallery and uploading using ftp upload the HTML page views correctly but images only display the alt tag in the browser window?

    After a little investigation, I discovered that PNGs also do not render correctly in IE7 in similar circumstances.
    I ended up using Levels in Photoshop to bring the output blacks up to "5", saved the images as PNGs, modified the HTML from .jpg to .png, and that seems to have covered up the problem well enough.
    By the way, I did confirm that IE8 beta 2 renders the images correctly.
    Brian

  • Am using Safari 4.1.3 with system 10.4.11 and can only come up with advances preference page when calling up security - thus cannot see cookies. I have Safari 5.0.6 on my MacBook. Will it run on my older machine? Can I transfer older bookmarks?

    Am using Safari 4.1.3 with system 10.4.11 and can only come up with advances preference page when calling up security - thus cannot see cookies. I have Safari 5.0.6 on my MacBook. Will it run on my older machine? Can I transfer older bookmarks to the new software?
    Machine Serial Number:          W8*********AR
    <Personal Information Edited by Host>

    Safari preferences has no...

  • I created an obituary using indesign but it will only print the even nuber of pages. What am I missing?

    I created an obituary using in design but it will only print the even number of pages.  What am I missing?

    Check your print dialog box, see if Even Pages Only has gotten selected.

  • HT1665 Recently read on a deal site forum page that you can only use Apple lightning cables to charge iPads running iOS 7 or higher. Is that the case or will any 8-pin to USB cable work? Thx in advance for any helpful replies.

    Recently read on a deal site forum page that you can only use Apple lightning cables to charge iPad Air or iPad Mini Retina running iOS 7 or higher. Is that the case or will any 8-pin to USB cable work? Thx in advance for any helpful replies.

    Due to a lot of bad press that Apple was getting due to burnt chargers, shocked users (the electrical kind...), etc., due to the lousy third party El Cheapo brand generics, as of iOS 7 the cable must be Apple-certified before the iGadget deigns to use it for charging purposes. Unfortunately (for Apple) the old traditional USB to 30-pin cable is just that, a straight piece of wire, and can't be validated by the iGadget. But lo & behold, the new gear uses the new Lightning cable, which contains an embedded chip that CAN be validated and lousy imitations disabled from use.

  • Pages '09 only uses one processor core?

    Hello,
    some days ago i had to open a document containing nearly 2.000 pages. Don't ask why.
    Working with this document was quite complicated because Pages was responding very slowly. I used the activity monitor to see what was going on and i recognized that Pages only uses one core of my eight core MacPro.
    I tested iWork on my iMac and MacBook Pro (both DualCores) as well: same problem.
    Does iWork only use one processor core?
    Kind regards,
    roman

    How much memory do you have in your system? I'll bet if you check activity monitor (applications/utilities) and go to system memory tab therein you will see lots of page outs. This happens with huge docs and little memory as the doc is being swapped between active operating memory and the hard disk The only way to solve this problem is to get more memory (not storage) in your system. For a 2,000 page doc you're going to need lots and lots and lots of extra gigs of memory. By the way - how big is the too big file of yours?
    Number of processor cores isn't going to solve the issue if you have pageouts. It is a system memory/size of document issue and completely unrelated to how many processor cores you are using.

  • How to pull content from div on one page to div on another page

    Hi all,
    I would like to pull content from the divs on page to divs on another page (so that I only have to update information on one page).
    Could anybody give me a tip on where to read about this/how to do this? I am not expecting the final answer, just a clue on where to start looking for how to get startet.
    Thanks in advance for any answers.
    Best regards,
    Ivan
    www.colombiareiser.no

    Try reading on DW Spry html data sets. The Spry HTML data set allows users to use standard HTML tables and other structured markup as a data source.
    http://labs.adobe.com/technologies/spry/articles/html_dataset/index.html
    http://labs.adobe.com/technologies/spry/docs.html
    Regards,
    Vinay

  • How to use a div id as a php var

    Hello,
      I have a form that is generated from a database with unique links that users can click and edit details about various vehicles.
    Now these links are each in their own div that has an id that i would like to use for insertion back into the database. (the users click the vehicles, then edit details, then it is submitted)
    The link is clicked for the vehicle, some details are changed via js windows etc, then the user click a finalize upload button to submit form
    For some reason i cant figure out how to use the div id to pass via php back to the database.
    what is the correct way to do this? not very experienced with ajax, and dont want to use.... but maybe hidden fields? confused.... the clicking of the unique divs does not submit the form, so not sure how to store the data effectively.... page cant be refreshed.
    [CODE]
    <div id="vehicle57">
    <a href="javascript:showSlider(57, 2001, 'Audi', 'A6' , 57, false);">
    <span class="videoStatHeading">VEHICLE: </span>
    2001 Audi A6</a>
    </div>
    <div id="vehicle54">
    <a href="javascript:showSlider(54, 1999, 'Dodge', 'Caravan' , 3, false);"><span class="videoStatHeading">VEHICLE: </span>
    1999 Dodge Caravan</a>
    </div>
    [/CODE]
    thanks a lot

    hello Shocker,
    here is the showSlider function, sorry didnt include it earlier
    function showSlider(vID,year,make,model,setupId,clickPOS){
              //remove default style
              //$("#uploadOptions").removeAttr("style");
              //window.alert("ID: " + vID);
              addMask();
        var pos;
        if(!clickPOS){
                  //make sure radio button 1 is showing
                  $("#firstRadio").show();
                  pos = calcPos(vID);//pos contains the position of the link clicks.
        }else{
                  //this means were clicked (change vehicle setup), hide
                  $("#firstRadio").hide();
                  pos = $("#bottomFieldset").offset();
                  pos.top           = pos.top-40;
                  pos.left           = pos.left-40;
        //reset error container
        $("#errorContainer").html("");
              //set width and height to zero before animation
              $("#uploadOptions").attr("style","height:0;width:0;opacity:0;filter:alpha(opacity=0)");
              //set position attributes rel to document
              $("#uploadOptions").offset(pos);
              /** AJAX request */
              if(!clickPOS){ //only reset
                        $.get("../ajaxResponders/getSetups.php",
                                  {vId: vID},
                                  function(data){
                                            $("#setup_span").html(data);//to strip the html headers from data
                        /** end AJAX request */
                        /** AJAX request */
                        $.get("../ajaxResponders/getSetupPic.php",
                                  {vId: vID},
                                  function(data){
                                            $("#setupThumb").html(data);//to strip the html headers from data
                         //reset error container
        $("#setupThumb").html(" ");
                        /** end AJAX request */
              //set element values of box
              $("#setupTextBoxWrapper").hide();//hide textbox
              $("#setupTextBox").html("").val("");//reset the textbox
              //set actionButton button text/script
              $("#actionButton").html("Confirm");
              $("#actionButton").attr("href","javascript:confirm();")
              $("#setupRadioOptions").attr("style",'');
              //$("#setupType").attr("checked",'false');//uncheck prev selected
              $("input[name='setupType']:checked").attr("checked",false);
              $("#vYear").html(year);
              $("#vModel").html(model);
              $("#vMake").html(make);
              $("#vID").attr('value',vID);
              $("#setupId").attr('value',setupId);//add setupId for case 1 & 2
              //animate box to open
              //$("#uploadOptions").hide().slideDown("slow");
              $("#setup_span").hide();
              //calculate height of setupbox
              var outerHeight = $("#setup_span").outerHeight(true);
              var fH = 280 +outerHeight;
              $("#uploadOptions").hide().css("z-index",9999);
              $("#uploadOptions").hide().animate({
                        "width": "500px",
                        "height": fH,
                        "opacity" : "1"
              },600,"swing",function(){
                        //adjust height to fit
                        $("#uploadOptions").css("height","");
                        //if no setups found in the db
                        if(!clickPOS){
                                  $("#setupLabel").html("Is this the setup for the media displayed?");
                                  var setSpanHTML = $("#setup_span").html();
                                  if($.trim(setSpanHTML)== "" && !clickPOS){
                                            //hide setup
                                            $("input[name='setupType']:checked").attr("checked",false);//uncheck selected box
                                            $("#setupType1").attr("disabled","disabled");
                                            $("#setupType3").attr("disabled","disabled");
                                            $("#setupType2").attr("checked",true);
                                            //no setup from db
                                            $("#setup_span").html('<span style="color:red">No setups found for this vehicle</span>');
                                            //flash setup span
                                            $("#setup_span").show().animate({
                                            "opacity":"0"
                                            },300,"swing",function(){
                                                                $("#setup_span").animate({
                                                                          "opacity":"1"
                                                                },300);
                                                      });//end function
                                            //flash confirm button
                                  }else{
                                            $("#setup_span").hide().slideDown("slow");
                        }else{
                                  $("#setupLabel").html("Change Setup");
              });//end function
    }//end function

Maybe you are looking for

  • Problem adding a table to scrollpane

    Hi: I have created a JTable that I want to be in a scrollpane. When I tried to add this JTable to a scrollpane I get a null pointer error at execution time. But when I add this table directly to the frame I get no error at execution time. Here is my

  • Reg: call procedure in bat file.

    Hi Friends    i have created procedure in my oracle database. now i want to call this procedure through Bat file. and my procedure is like PROC_VALIDATION(FILENAME IN VARCHAR2(50)); my procedure passing parameter also. please help.

  • Where is Contact Sheet II in CS4?

    Just upgraded to CS4 and cannot find Contact Sheet II under File>Automate. Went back to my old CS and pulled up the feature only to find out that when I went under Source Images> Folders>Choose... the chosen folder has all the photos grayed out.I'm o

  • With icloud, why would you need an iphone larger than 16Gb

    I am finally getting ready to get rid of my old broken down Droid. I am an apple user, but missed the iphone release with Verizon by about 1 month. Now that my contract is almost up, ready to switch over. My question is, if I have access to icloud on

  • Mac errors after upgrade to Leopard

    Hi, Just completed the upgrade to Leopard and having some problems with errors on my Mac. Tried both Disk Utility and Disk Warrior, it does not fix the issues at hand. Any suggestions or advice? Warning: SUID file "usr/libexec/load_hdi" has been modi