Centering a webpage and a background image

Can anyone help

Yes.
Please give more details about what you want to do.
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
==================
"jingley" <[email protected]> wrote in
message
news:ecf1bk$km4$[email protected]..
> Can anyone help

Similar Messages

  • JOGL and Large Background Images

    Hullo gurus! :)
    I'm having trouble with converting my work-in-progress RTS-style game from using Graphics2D into a (hopefully) faster JOGL format.
    In my current approach, I've got a 2000x2000 pixel JPG which contains the entire map. Units and structures are layered on top of the background image, and nature takes its course.
    Now, I'm trying to figure JOGL out, and have picked up a book and read a number of samples within, as well as around the web. One of the examples from this very site suggested a process of converting the image into a format that would display as expected on the screen. The code snippet looks something like this:
            Image i = Toolkit.getDefaultToolkit().createImage ("Map_0_0.jpg");
            MediaTracker tracker = new MediaTracker(new Canvas());
            tracker.addImage (i, 0);
            try {
                tracker.waitForAll();
            } catch (InterruptedException ie) {}
            dukeHeight = i.getHeight(null);
            dukeWidth = i.getWidth(null);
            System.out.println ("Got image, width=" +
                                dukeWidth + ", height=" + dukeHeight);
            // turn it into a BufferedImage
            WritableRaster raster =
                Raster.createInterleavedRaster (DataBuffer.TYPE_BYTE,
                                                dukeWidth,
                                                dukeHeight,
                                                4,
                                                null);
            ComponentColorModel colorModel=
                new ComponentColorModel (ColorSpace.getInstance(ColorSpace.CS_sRGB),
                                         new int[] {8,8,8,8},
                                         true,
                                         false,
                                         ComponentColorModel.TRANSLUCENT,
                                         DataBuffer.TYPE_BYTE);
            BufferedImage dukeImg =
                new BufferedImage (colorModel, // color model
                                   raster,
                                   false, // isRasterPremultiplied
                                   null); // properties
            Graphics2D g = dukeImg.createGraphics();
            // use an AffineTransformation to draw upside-down in the java
            // sense, which will make it right-side-up in OpenGL
            AffineTransform gt = new AffineTransform();
            gt.translate (0, dukeHeight);
            gt.scale (1, -1d);
            g.transform (gt);
            g.drawImage (i, null, null);
            // now retrieve the underlying byte array from dukeImg
            DataBufferByte dukeBuf = (DataBufferByte)raster.getDataBuffer();
            dukeRGBA = dukeBuf.getData();       
            g.dispose();However, on the "g.drawImage (i, null, null);" line, I get the "Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space.
    Am I doing something dumb? Is there a better approach that will let me render everything the way I'm trying to? Any advice would be greatly appreciated... :)
    -Squeakz

    > This is not good as I have a background image next the
    header.
    VIEW | Visual Aids > Hide All.
    > and open the predefined template and save as a page.
    This is wrong, wrong, wrong. Please read the F1 Help for how
    to properly
    create child pages from your templates.
    All links in the TEMPLATE file should be one of three kinds -
    1. Relative to the template file, e.g.,
    <a href="../ (meaning that you must go up one level from
    the template folder
    to reach the root of the site, hence all other files, since
    none of them
    should be in the templates folder)
    2. Relative to the site root, e.g.,
    <a href="/ (meaning that one would begin looking for the
    linked file at the
    root of the site and follow the pathing from that point)
    3. Absolute, e.g.,
    <a href="
    http:// (meaning that the link is to a page
    external to the site).
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "lister110" <[email protected]> wrote in
    message
    news:fl3bi5$g4s$[email protected]..
    > Hello everyone...
    >
    > I have just started using dreamweaver, and want to be
    able to use
    > templates. I
    > have started with a basic page. Now there are a few
    things that seem odd.
    > Once
    > I have defined the page as a template and selected a
    header 1 say and
    > define as
    > an editable region the section nudges down slightly to
    reveal the editable
    > caption. This is not good as I have a background image
    next the header.
    > Anyway,
    > I then save the template and open the predefined
    template and save as a
    > page.
    > But all my background images have disapeared? even the
    css tab shows no
    > background images all. Whats going on with templates???
    >
    > I am using Dreamweaverv Cs3 on a PC running windows xp
    >
    >
    > help..
    >
    >
    > lister
    >

  • How to select and edit background images in templates?

    I open a template in pages ('elegant brochure' for example) and there is a background image that takes up the entire background of the page. When I click on the image, instead of being surrounded by the 6 little circles (that allow resizing) there are little x's. I can't move or change the image. I thought this was a master object, but it does not have blue circles, and I have 'master objects selectable'. I find it a little annoying that I want to use a prepared template but edit it beyond what apple gives me. Why can't I have more control (short of making a template from scratch)? How do i edit the images that have x's surrounding them?

    easiz,
    The x's indicate that it's a locked object. Click on Arrange > Unlock to edit it.
    -Dennis

  • Problems with XleTView and the background image

    Hello!
    I�m a student trying to develop aplications with MHP, i am actually using XleTView 0.3.6.
    I�ve traying to show a background image but but nothing appears in the background. I have tryed with Steven Morris's HaviExample and with other codes found in the internet and in this forum.
    As i have read, with this version of Xletview its not neccesary to have an I-Frame so i�ve been trying with .jpg, .png, .gif...
    actually if i try with an .mpg this appears:
    [XleTView]-INFO->org.havi.ui.HBackgroundDevice:
    At the moment XleTView always return a HStillImageBackgroundConfiguration here
    [XleTView]-INFO->org.havi.ui.HBackgroundImage:Display of .mpg is not yet supported.
    A workaround for now is to use a .jpg with the same name.
    xjava.io.File - Menu1.jpg
    and i have the Menu1.jpg in the right directory, but nothig appears. I've tryed the 0.3.5 too. Someone can help me?
    Thank you!!

    Finally i have resolve the problem, i have used this code to resize the video layer (maybe is usefull for someone):
    ServiceContext serviceContext = null;
            Player player = null;
            try{
                 serviceContext = ServiceContextFactory.getInstance().getServiceContext(context);
            } catch(ServiceContextException ex){
                 ex.printStackTrace();
            ServiceContentHandler[] handlers = serviceContext.getServiceContentHandlers();
            for(int i = 0; i < handlers.length; i++){
                 if(handlers[i] instanceof Player)
                     player = (Player)handlers;
    AWTVideoSizeControl awtVideoSizeControl;
    if (player != null) {
    awtVideoSizeControl = (AWTVideoSizeControl) player.getControl("javax.tv.media.AWTVideoSizeControl");
    awtVideoSizeControl.setSize(new AWTVideoSize(new Rectangle(0, 0, 720, 576), new Rectangle(0,0,0,0))); 

  • When I try to print, I get one page with a header and the background image, another page with the content, and a third page with a footer and background image. How can I make it print properly?

    Also, if I print to a .pdf, the background does not show up even if I have the checkbox checked to print background image.
    The site I'm trying to print is:
    [http://www.puertovallartatours.net/coupons-discounts.htm http://www.puertovallartatours.net/coupons-discounts.htm]

    I did not have the HP printer software for Mac OSX installed properly. Once installed the problem went away.

  • Spacing of Spry Menu submenu items, and inserting background images

    Hiya, need a bit of help, could someone possibly guide me with this?
    I've created a Spry Menu in DW CS5 - so far, so good.. However I'm pretty new to CSS Styles so need pointers at what to change to get the result I need. I've created the spry menu, however the submenu dropdown items are not flush to the ones above, theres a 1px horz gap between each item and while it looks okay, its particularly visible in Firefox and Chrome and would prefer no spacing at all..
    The live site is at http://www.ebm.co.uk/2011site/indexnavbar2.html
    if you take a look at the drop down menu bar you'll see what i mean - what do I need to do to remove the spacing?
    I also want to replace the solid colour with images, where do I specify the images for 1) top menu item 2) submenu item and 3) 'hover' item, and do I need to make any areas transparent?
    Any advice would be much appreciated.. thanks!
    Chris

    This is a good place to start http://www.dwcourse.com/dreamweaver/ten-commandments-spry-menubars.php.
    Also this might help http://labs.adobe.com/technologies/spry/samples/menubar/CenteringHorizontalMenuBarSample.h tml
    Gramps

  • I'm getting ugly vertical stripes at pictures and background images on my HTC One S.

    I like using Firefox on my HTC One S, syncing the browsing history and bookmarks really comes in handy.
    But however, sometimes i get ugly stripes above some images. When resizing the site, they sometimes disappear. It happens only with images and css-background images.
    A few screenshots: https://www.dropbox.com/sh/tq47ved3p1qe766/0KiMvzEHSD/screenshots/firefoxbug

    I think you can thank Apple for this.  See this discussion.
    Photoshop CC: MacOS 10.10 Yosemite: Graphics driver problem
    Nancy O.

  • Page won't center on background image

    I am having some trouble centering my page on a background image.  Here is my CSS for my body.  I thought the left and right margins set to auto should center the page.  The site can be found at http://www.findlaypopcorn.com the CSS is in index.css ( attached)
    body {      background-color: #ffffff;      margin-left:auto;      margin-right:auto;      width:796px;      padding:0px;      background-image: url(images/kernelsunpopped.JPG);      background-repeat: no-repeat;      background-attachment: fixed; } Please help

    It is centered for me in Chrome, Firefox and IE 7 on Vista.
    What browser/OS do you not see it centered for?

  • How to get rid of background image when I scroll up or down in safari?

    Since I have downloaded OS Mavericks on my macbook pro I have a problems with Safari.  Whenever I scroll up or down on any webpage and ugly background of clipart looking images appears instead of the original grey background.   This is the best image I could take of what it looks like when I scroll up. 

    funwidowlady,
    Good afternoon!  I'm glad I can be here to help with this error. In the device this application is identified only as 'Talk', so that be more familiar to you. First I recommend opening the 'Market' app on your phone, then Menu>My Apps to see if this application requires an update. It will display a list on top of all applications that need to be updated. If nothing exists, tap 'Home' and go into 'Settings>Applications>Manage Applications>Talk, then tap 'Clear Cache' and 'Clear Data' to remove the history of that application and stop the notifications.  The app will remain on your phone for future use, if you desire to take advantage of it. Read more about Google Talk here
    Thank you!
    AdamE_VZW
    Follow us on Twitter @VZWSupport

  • How to get Internal frames as well as a background image in a JFrame?

    Hi All,
    Here's my problem. I have a JFrame with a background image that I got by overridding the paintComponent() method of a JPanel and setting as the contentPane of a JFrame. Works great.
    Now what I want is to use internal frames with this Frame a la JInternalFrame classes. But you need to create a JDesktopPane object and set this as the contentPane of the JFrame to get internal frames to work, right? Is there a way for me to have my cake and eat it so I get both internal frames and a background image? Thanks!

    Hmmm,
    so simple, why didn't I think of that? Damn Mondays!
    thanks very much!

  • Setting background image in JFrame

    Witam,
    Jak mozna ustawic tlo w postaci grafiki (png, jpg, ...) dla jFrame? Znalalem juz kilka sposobow ale one uzywaja jPanel, ktorego ja NIE moge uzyc ... niestety. Jesli nie ma takiej mozliwosci dla jFrame to moze tez byc dla jScrollPane, JComponent, Scene albo LayerWidget;)
    Hi,
    Is it possoble to use image as a background for jFrame? I know that it is possible to use jPanel and ser background image for jPanel, but in my project I cannot use it. Instead I can use jFrame, jScrollPane, Scene or LayerWidget.:)

    In the future, Swing related questions should be posted in the Swing forum.
    But there is already no need to post in the Swing forum because you already know the answer:
    I know that it is possible to use jPanel and ser background image for jPanel,
    If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)", that demonstrates the incorrect behaviour.
    http://homepage1.nifty.com/algafield/sscce.html
    Don't forget to use the "Code Formatting Tags", so the posted code retains its original formatting.
    http://forum.java.sun.com/help.jspa?sec=formatting

  • CSS for background image not transfering from template to new page

    I have a gradient .gif in my templates which suddenly no longer transfers from the template to  a new page created from the template.  Everything else about the template transfers.  I'm using Dreamweaver CS5 on a Mac running OS 10.6.  I've pasted the CSS from the template and the new page below.  I've tried the usual voodoo--restart program, restart computer, repair permissions, delete preference file, delete personal configuration file.
    CSS from Template:
    .container {
        background-color: #ececec;
        background-image: url(../images/faux_column.png);
        background-repeat: repeat-y;
        height: 650px;
        width: 650px;
    CSS from page created from Template looks to be the same, but is greyed out in the code, and the background-image entry is not present in the CSS styles inspector:
    .container {
        background-color: #ececec;
        background-image: url(../images/faux_column.png);
        background-repeat: repeat-y;
        height: 650px;
        width: 650px;
    Any suggestions greatly appreciated.

    Unfortunately, I don't yet have a site where I can post the page.  I'm new to this, and doing everything locally for now.
    After careful rechecking, I found that the links for the template and the child were not the same, as you suspected.  So I carefully changed the links to site root relative, which worked for the background CSS in my test image.  I then did the same for all of the links to pages on my site, and checked that all were OK with Link Checker in DW.  I guess that was a mistake, because now most of them don't work when tested in Firefox--I get the message File not found.  Must be doing something wrong.

  • Background Image repeating for table cells

    I am trying to put different images as the background to all
    the cells in a table, so I can put text over the top of them, but I
    cant have an image without it repeating. Ive tried going into the
    code and adding background-image: "no-repeat" but that hasn't
    worked. I know nothing of CSS and it seems really confusing - so if
    this is the answer please give me CSS for dummies instructions.
    Layers drive me bonkers as no 2 browsers display them in the same
    place.
    URL is:
    http://www.visionsportsmedia.com/BillyTestSite/test
    At the moment only cell one is a background image, the rest
    are images inserted normally.
    Hope you can help.
    Thanks.

    Your question reflects the confusing mess your life will be
    if you persist
    with web authoring without taking the time to learn some HTML
    and CSS.
    You have -
    <th height="351" colspan="6" "scope="col">
    Note the extra doublequote just before 'scope'.
    Also note that your preloads (look at the body tag) as well
    as your image
    swaps (look elsewhere - everywhere you see 'file:///') are
    all broken -
    pointing to files on your hard drive. Finally, you might want
    to just think
    about making a page where there is no readable content
    (everything here is
    in images). It will get a zero search engine ranking....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "little bob" <[email protected]> wrote in
    message
    news:gqo8jh$ejo$[email protected]..
    >I am trying to put different images as the background to
    all the cells in a
    > table, so I can put text over the top of them, but I
    cant have an image
    > without
    > it repeating. Ive tried going into the code and adding
    background-image:
    > "no-repeat" but that hasn't worked. I know nothing of
    CSS and it seems
    > really
    > confusing - so if this is the answer please give me CSS
    for dummies
    > instructions. Layers drive me bonkers as no 2 browsers
    display them in the
    > same
    > place.
    >
    > URL is:
    http://www.visionsportsmedia.com/BillyTestSite/test
    >
    > At the moment only cell one is a background image, the
    rest are images
    > inserted normally.
    >
    > Hope you can help.
    >
    > Thanks.
    >

  • Reducing background image size

    Hi all,
    I'm working with Captivate 4 and have made a screencast of a particular process for training purposes.
    The project has 80 slides - but each background image is 1800+kb. Overall the project comes out at 3 MB even with the highest possible compression in the publishing settings.
    The project is to be hosted on the Web so I really don't need this kind of detail in the background images and I can't find anyway to reduce the image size apart from exporting each of the 80 backgrounds into Photoshop, reducing them in size and importing them back into Catptivate. For 80 slides this would take too long.
    So, two questions:
    How can the background image size be reduced within Captivate?
    How can I change the settings so when capturing screenshots the image sizes are smaller in the first place?
    Thanks in advance for any tips,
    Neil
    Is there anyway the

    Thanks Lilybiri
    I've bene recording at full screen (1024x768 or close enough) in order to get the largest recording space possible - and then resizing the project to 800x600 for the web production. The problem is that there is no optimise for web setting (or none that I can see). I just did another test and each background image is 3000kb - way over the top for something that will be viewed on the web.
    Does this help you get a fuller picture? Any advice?
    Thanks for sparing your time to answer here btw - much appreciated
    Neil

  • Agentry - WPF Background Image

    I am using the Agentry WPF client v7 with SMP3.  I am also using the Agentry editor v7 to develop the application.  I am trying to add a background image to a detail screen for the WPF client.  I have targeted the Windows 1024x768 platform and selected the appropriate background image.  The screen appears correctly in the screen preview in the Agentry editor.  However, when I run the app in the Agentry WPF client the background shows up as all white and the background image does not display.  Can anyone think of what I could be doing wrong?

    You aren't doing anything wrong, it is just that the WPF client does not yet support background images.  That feature just hasn't been implemented yet on the WPF client.
    Sorry,
    --Bill

Maybe you are looking for

  • Sales Returns for Excisable Finished Stock

    Dear All, I have read a post below with regards to sales returns for finished stock which updates RG1 register, as I understand RG1 register is a quantity register, and the movement types define the sales returns qty wise, However I have the followin

  • Icelandic characters for Word for Mac

    Help! I am trying to use the Icelandic alphabet in a document I am composing using Microsoft Office 2004 for Mac. Trouble is, there doesn't seem to be any support for the special characters that I need. I've looked everywhere for a solution, and noth

  • I have a problem in BDC Recording?

    HI, When I do recording method in BDC to trasfer legacy in "MM01" (Material Master) "It records scroll bar also when we select Data". Is there any solution. Thanks & Regards, Gagan

  • Not able to set Property in bean

    this is my code----------------------------------------------- <% if (request.getParameterValues("Submit")!=null) %> <jsp:useBean id="WriteToFile1" class="mypackage.WriteToFile"/> <jsp:setProperty name="WriteToFile1" property="Path" value='<%= reques

  • Cannot open pdf files in Hotmail.

    Cannot open PDF files in Homail. Problem just started. Can open in Outlook, Chrome, etc,