Button with full background image

Hello,
I want to have a button with a image as background.
The background image has to fill the complete button background.
If you see the screenshot (url) , there is space around the image.
I have add a red border to see that the button size != background image.
I also tryed style with -fx-background-repeat: repeat-x;
[http://office.techniconsulting.be/~peeters/button.png]
Button button = new Button();
ImageView imageViewOn = new ImageView();
imageViewOn.setImage(....);
ImageView imageViewOff = new ImageView();
imageViewOff.setImage(imageViewOff);
button.setText(this.name);
button.setGraphic(imageViewOff);
button.setContentDisplay(ContentDisplay.CENTER);
button.setStyle("-fx-border-color: red; -fx-border-width: 1;");

Maybe not the perfect solution, but you can make the background transparant of the button so you won't see the button.
button.setStyle("-fx-background-color: rgba(0%,0%,0%,0)}");Else I would say, don't use a button and create your own.
-Stackpane
--ImageView with image
--text
For events, you can put events on the StackPane..
Edited by: FXdude on 25-jan-2013 5:02

Similar Messages

  • How do I create Equal Height Columns with my Background Images?

    Hi there,
    here is my page http://www.allthingsprintuk.co.uk/ATPHome.html
    My problem is that the side bar HTML list is coming off the page in IE. & also the html  in the header can look awful due to browser settings.
    My question is how do I create Equal Height Columns with my Background Images so that they fit with the HTML text? Is there a good link you can point me to, or a tutorial?
    The only way I can see by doing it is slicing my images up into 3 (top middle & bottom) & then setting the middle to repeat y????
    Or does anyone know of a way to create rounded corners WITH drop shadows in CSS that will work on all browsers?
    Thanks in advance
    Louisa

    Try these http://www.pixelan.com/

  • Problems with the background image in IE

    Hi I've been optimizing some pages for the different browsers in Dreamweaver CS4. They all work fine in Safari, Firefox and Opera, Internet Explorer is, however not showing the background image I have selected. I can't for the life of me see what's going wrong! Any help wopuld be appreciated. here is the code on my index page which I built from a template. I don't know if it's the editable areas that are going wrong!
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>test site</title>
    <!-- InstanceEndEditable -->
    <link href="oneColFixCtrHdr.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    body {
    background-repeat: repeat-x;
    background-image:url(file:///Macintosh HD/Users/me/Documents/websites/face_divorce/test/images/test_back.png);
    .oneColFixCtrHdr #container {
    width: 770px;
    margin: 0 auto;
    border: 0;
    padding: 0;
    .oneColFixCtrHdr #header {
    text-align: centre;
    border: 0;
    padding: 0;
    .oneColFixCtrHdr #header h1 {
    <img src="../images/test_logo.png"
    margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
    padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
    font-size: x-large;
    text-align: right;
    .oneColFixCtrHdr #mainContent {
    padding: 0;
    .oneColFixCtrHdr #footer p {
    margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
    padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
    font-family: Verdana, Geneva, sans-serif;
    color: #6699cc;
    font-size: 9px;
    font-style: normal;
    line-height: normal;
    font-weight: lighter;
        text-align: center;
    -->
    </style>
    <!-- InstanceBeginEditable name="head" -->
    <meta name="Description" content="facedivorce.com.com is an online resource tool to help guide you through the various stages of divorce.  Simply click on before, during or after divorce to find everything you could ever need to do with divorce.
    " />
    </head><meta name="keywords" content="test
    " />
    <!-- InstanceEndEditable -->
    <body class="oneColFixCtrHdr">
    <div id="container">
      <div class="oneColFixCtrHdr" id="header">
        <table width="740" border="0" align="center">
          <tr>
            <td  border="0" height="38" ></td>
            <td align="right" valign="bottom"><!-- InstanceBeginEditable name="HeaderLinks" -->
              <p class="TextButtons"><a href="index.html" class="TextButtons">Home</a>   <a href="featuredcompany.html" class="TextButtons">Featured Company</a>   <a href="youngpeople.html" class="TextButtons">Young People</a>    <a href="andmore.html" class="TextButtons">And More</a>    <a href="blog/index.html" class="TextButtons">Blog</a></p>
            <!-- InstanceEndEditable --></td>
          </tr>
          <tr>
            <th height="48" align="left" valign="bottom">
    <h1><a href="index.html" title="test"><img src="images/test_logo.png" alt="test" width="245" height="46" border="0" align="left" /></a></h1>
    </th>
            <td align="right" valign="bottom"><!-- InstanceBeginEditable name="HeaderButtons" --><a href="#"><img src="images/facebook-logo.png" alt="FaceBook Button" width="48" height="48" border="0" align="bottom" /></a> <a href="#"><img src="images/twitter_square.png" alt="Twitter Button" width="48" height="48" border="0" align="bottom" /></a><a href="#"><img src="images/blogbutton.png" alt="Blog Button" width="49" height="47" border="0" align="bottom" /></a>    <!-- InstanceEndEditable --></td>
          </tr>
        </table>
        <!-- end #header -->

    Hi
    The fact you are using a Mac is why both myself and JCellini assumed you where using a pre IE7 version.
    But the code you are using to test in IE will cause a problem with any 'virtual machine' such as crossover, because it cannot reference anything outside its own assigned section of the drive, and referencing the png in the way you are would be for it an invalid reference, it also would not work in any browser when you uploaded the site.
    Change - background-image:url(file:///Macintosh  HD/Users/myname/Documents/websites/test/Test/images/test_back.png);
    To - background-image:url(images/test_back.png);
    But if the region is not editable I would suggest you temporarily make it so, externalize your css to a css file, insert a link to the external css file in your head content, then lock the region once again. This way you will always be able to edit your css without worrying about 'locked regions'.
    PZ
    www.pziecina.com

  • Having trouble with full frame image

    I want to make my image expand with the website and different screen sizes so it's always the full background. As you'll see on large screens it doesn't expand all the way and on the iPhone it doesn't as well. I've tried everything. I've stretched the box to both sides of the page as well as both top and bottom of page so you see the red appear around the box. I thought this would work. I've changed the page height from tall to short. I just can't figure out why it won't expand. Any suggestions?
    as you'll notice at the bottom. I've made the background color of the land but where the water is it doesn't expand all the way.
    as you can see on the phone it's worse and doesn't expand all the way
    the site is www.montysbay.com/contact.html

    Embed the image first:
    [Embed(source="logo.gif")]
    [Bindable]
    public var imgCls:Class;
    then assign it:
    this.source = imgCls;
    http://livedocs.adobe.com/flex/201/html/embed_082_3.html
    Tracy

  • Photoshop buttons with tranparent background display in IE 7 & 8 with a Black background

    I added Photoshop buttons to my website and they display fine in IE 9, but when I tested it on Windows XP using IE 8 and on Windows Server 2003 using IE 7 these Photoshop buttons showed up with black background where it should have been transparent.
    As a workaround I created a background in my PSD files to match the background of the website. However, this is not ideal because changing the website background in the future is now going to require editing all of the PSD buttons again.
    The other strange thing I notices is that when I had these buttons originally in the header of a Horizontal Menu Widget they worked fine on IE 7 and 8. I'm not sure why when I remove them from the widget the background shows up black.
    This definitely appears to be a BUG and hopefully Adobe can resolve it quickly.
    Let me know if anyone else has experienced this problem and how you fixed it.

    I do agree that it is probably related to the browser.  However, that does not explain why the same images display fine if they are in a horizontal menu widget.  It would seem that if they display one in a Muse website they should work anywhere in the site. Obviously that is not the case and must have something to do with the way a widget embeds the image.  I don't have an explain online since I already fixed the problem by removing the transparent background and matching the background color of the website in the photoshop PSD file.
    If you want to see an example of what the site looks like know you can go here.  http://www.itouchandlearn.com/toddler-puzzles.html the buttons that I had a problem with are the App icons accross the top. 
    I originally had everything on a single page nesting the different app pages within the horizontal menu widget, but because everything was on one page it took to long to load.  To fix this problem I created new pages for each widget menu tab and moved everything out of the menu widget.  This is when the transparent background became a problem.

  • Adding a panel to an open GUI with a background image

    Dear java programmers,
    I want to add a JPanel with some components on an open(visible) GUI whenever a button is clicked. That JPanel carries a button, a progress bar, a label, and a textarea inside a scrollpane. Whenever the button of the panel is clicked a program starts working, and the progress and output of that program is reflected on the progress bar and textfield respectively. I 'put the code to generate and add the panel in a so called "Progress" class, which is different from the GUI class that contains the code to create and display the main gui.
    My gui also has a background image to make is look fancy, which is added by the following way:
    GUI mygui = new GUI();
    mygui.getContentPane().add(new ImagePanel(new ImageIcon("/home/thomas/Documents/external_placement/Report/presentation4_transp.png").getImage()));
    My problem is that the background image is hiding the panel (whenever added) and only when the cursor passes above the button inside the panel it becomes visible (just the button). However when I click the button and the program starts I can see everything inside the panel.
    Is there an efficient way of making the panel visible at once?
    thanks in advance,
    Tom

    Ok now that I'm certain about how to use code tags I'll try to make myself clear.
    First of all I made it work by removing the ImagePanel , adding the JPanel and re-adding ImagePanel, all from within the Progress.class. But I'm not sure if this is the right way.
    Below I'll make an attempt to provide some SSCCE--code. First of all the classes I'm using are 2, the GUI.class which contains all the components of the gui, and the Progress.class which has the additional panel and adds it to the gui whenever the "submit" button is clicked.
    The code from GUI.class which is relevant to this question is:
    public class GUI extends javax.swing.JFrame{
    //the following are declared as "protected" because they are also used elsewhere
                protected static GUI mygui = new GUI();
                protected static ImagePanel backgroundImagePanel = new ImagePanel(new ImageIcon("/home/thomas/Documents/external_placement/Report/presentation4_transp.png").getImage());
                /* The constructor */
                public GUI() {
            initComponents(); //this method initializes all the components, puts the in a JTabbedPane and packs them the JFrame
            setLayout(new BorderLayout());
        /* the eventlistener of the "submit" button */
        private void submitButtonActionPerformed(java.awt.event.ActionEvent evt) {
            ProgressBarTest pbt = new ProgressBarTest(mygui);
            pbt.StartProgress();
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    mygui.getContentPane().add(backgroundImagePanel);
                    mygui.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                    mygui.pack();
                    mygui.setVisible(true);
    } And then I have my Progress.class:
    public class Progress implements ActionListener, Runnable {
    //the following are declared as "private" because they are also used elsewhere inside the class
        private static javax.swing.JProgressBar progressBar = new JProgressBar(0, 100);
        private static javax.swing.JTextArea progressTextArea = new javax.swing.JTextArea(5,20);
        private static ProgressBarTest _this;
        {color:#0000ff}private static GUI mygui;{color}
        /* the constructor */
        public Progress(GUI gui){
            _this = this;
            {color:#0000ff}mygui = gui;{color}
        private static void createAndShowPanel(){
            javax.swing.JScrollPane progressScrollPane = new JScrollPane(progressTextArea);
            javax.swing.JLabel progressLabel = new JLabel("Progress");
            javax.swing.JButton progressButton = new JButton("Do something");
            progressButton.addActionListener(_this);
            javax.swing.JPanel progressPanel = new JPanel();
            javax.swing.GroupLayout progressPanelLayout = new javax.swing.GroupLayout(progressPanel);
            progressPanel.setLayout(progressPanelLayout);
            progressPanelLayout.setAutoCreateGaps(true);
            progressPanelLayout.setAutoCreateContainerGaps(true);
            progressPanelLayout.setHorizontalGroup(
                    progressPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(progressPanelLayout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(progressPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(progressScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 872, Short.MAX_VALUE)
                    .addComponent(progressBar, javax.swing.GroupLayout.DEFAULT_SIZE, 872, Short.MAX_VALUE)
                    .addComponent(progressLabel)
                    .addComponent(progressButton, javax.swing.GroupLayout.Alignment.TRAILING))
                    .addContainerGap())
            progressPanelLayout.setVerticalGroup(
                    progressPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, progressPanelLayout.createSequentialGroup()
                    .addContainerGap(25, Short.MAX_VALUE)
                    .addComponent(progressButton)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(progressLabel)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(19, 19, 19)
                    .addComponent(progressScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap())
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout({color:#0000ff}mygui.getContentPane(){color});
            {color:#0000ff}mygui.getContentPane().setLayout(layout);{color}
            layout.setHorizontalGroup(
                    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(progressPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent{color:#0000ff}(mygui.jTabbedPane1{color}, javax.swing.GroupLayout.PREFERRED_SIZE, 496, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(100, Short.MAX_VALUE))
            layout.setVerticalGroup(
                    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent({color:#0000ff}mygui.jTabbedPane1{color}, javax.swing.GroupLayout.PREFERRED_SIZE, 362, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(progressPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addContainerGap())
           {color:#0000ff} mygui.getContentPane().remove(mygui.backgroundImagePanel);
            mygui.getContentPane().add(progressPanel, BorderLayout.SOUTH);
            mygui.getContentPane().add(mygui.backgroundImagePanel);
            mygui.pack();{color}
        public static void StartProgress(){
            ProgressBarTest t = new ProgressBarTest({color:#0000ff}mygui{color});
            new Thread(t).start();
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowPanel();
        public void actionPerformed(ActionEvent ae){
    // signal the worker thread to get crackin
            synchronized(this){notifyAll();}
    // worker thread
        public void run(){
            while(true){
    // wait for the signal from the GUI
                try{synchronized(this){wait();}} catch (InterruptedException e){}
                Dock dock = new Dock();
                int chainArrayLength = dock.PrepareDockEnvironment();
    // start a long-running process -this is a task performed by "Dock.class"
                for (int i = 0; i <= 100; i++){
                    progressBar.setValue(i*100/chainArrayLength);
                    progressTextArea.append("Docking chain No "i".\n");
                    System.out.println("actionPerformed sets progressBar value to: "+i);
                    dock.StartDocking(i);
    }Please notice how I use the GUI object (named "mygui") inside the Progress.class to retrieve components from the main gui (particularly the jTabbedPane1), align them with the additional panel (progressPanel) and add them to the main gui again. I tried to color blue the lines where the GUI instance is used but I'm not sure if they will be visible.
    My questions are:
    1. Is this the right way to add a new panel to a jFrame from an external class? Do I add jTabedPane twice in the above code?
    2. Is this the most efficient way of making the additional panel visible at once, meaning by removing the ImagePanel (backgroundImagePanel) adding the panel (progressPanel) and finally adding again the ImagePanel (backgroundImagePanel)?
    Hope I was perspicuous.
    Tom

  • How to create ePUB with full size images/pages to adjust according to device?

    Friendly Greetings,
            I have been trying, for nigh on two months, to convert/create my 7 books that are in print into eBooks; with first publishing scheduled to be Nook, with Kindle on the eventually list. I am, sadly still working on just getting the first one published! And I could really use any assistance to get this figured out. My intent was to publish several weeks ago...now my desperation is to publish before the weather gets too warm and kids are outside most of the time...or at least no later than Easter. :0)
            First and foremost, my books are picture/poetry books for kids of all ages. They were fully designed in Photoshop, where I also created the full size images for the first eBook. I received the specifications from B&N for the various Nook devices. Under the assumption that it would be best to create the largest of the files, thus allowing smaller sized devices to adjust the page accordingly to fit and the largest would not overstretch a smaller image, I sized my pages to 1280px x 1920px at 72dpi. (now I hear 150 is standard??)
            My text is included within the image as the design is one image = one page. I included a full text only version of the story/poem at the end for those wishing to adjust text or use a voice reader. I obviously have all the original files, but for publishing they were all saved as JPGs.
            After quite a struggle and a whole lot of frustration I managed to complete the manuscript in Barnes and Noble's Nook Press Manuscript Editor. My internet is molasses and thus much of this was done in the wee hours of the morning when the rest of the time zone is asleep. I only had one page with an issue, of an extra blank line/space that was irreparable. I published, and found it was completely botched in publish, though the preview looked a-okay. Only about the top left 1/6 of each image/page was visible in either my laptop's Nook for PC or my Android Tablet's Nook App. So I agonizingly awaited another 10 hours, hoping no one would buy my book during that time, for it to be removed from sale.
            I downloaded a trial of InDesign CC, and after two weeks of not even being able to create a single new document for some screwy reason, I bought a month's subscription. So far I'm not entirely convinced of this whole Creative Cloud malarkey, especially considering...as like I said my internet is slow...it took me nearly 20 hours just download the software. (Is it really that difficult to offer disc, seriously?) After a chat and phone call I can, in theory, now use InDesign.
            I created a New Document for Digital Publishing at the aforementioned specs (1280 x 1920 px). I made the rectangle placeholders the full size of the page, and place one image per page. This usually inserted the image at about 50% and I would have to select 100% and then move as necessary in to place.
            Thus, my first question is: Is there a way to place an image at 100% without having to do that extra resizing step? Or if there is an alternative way to place the image to the full size of the page without any of those other steps that would be lovely too.
            Okay, after placing several pages/images I also selected each and went to Object Export Options and Checking the Custom Rasterization and "Resize to Text Flow".  I then exported a trial ePUB to see what it would look like. On both the PC and Tablet in landscape mode it was a far cry better than the other, but about oh a 1/3 of the bottom of each page was cut off. On the tablet I rotated to portrait and voila full page. Woohoo! But alas, I don't want to limit it.
            Is there something I am doing wrong? Did I miss a step or two somewhere so that the full image will fit on the page? I feel like I'm just about to turn the page on this thing, but it's stuck to the one after that.
            I would greatly appreciate any insight, tips, help that anyone can offer. I have run the gauntlet of Barnes and Noble...cough, cough...support and apparently I ask questions which no Nook Press rep can answer and the forums over there have no clue about InDesign. It's almost as if with all the fantastic beautiful screens out there today nobody wants picture books! How does National Geographic do it?!
            Thank you very kindly.
    In case it is necessary: My laptop uses Window 7 Pro 64-bit, InDesign CC is 64-bit and my 10.1 tablet uses Android. I can view the EPUB files in Nook for PC and Nook for Android. I also have Kindle, LumiRead, and various other apps on the tablet. I can also have someone preview the finished epub, if need, on a Mac, iPad, and/or Android phone...though I do not have any of these. Not sure who has a Nook I can look at though. Thanks again.

    Q: Is there a way to place an image at 100% without having to do that extra resizing step?
    I think here you want your images to fit in the full page size frame automatically. For this you can try the follwoing steps:
    1. Create a new doc
    2. Goto Object menu and choose Frame fitting options
    3. Select Autofit and from Fitting drowdown, select "Fit content to frame". Refer the screenshot below:
    After this you images should automatically fit in the entire page placeholder frames. Please let me know if this does not work or if the problem you are facing is different and I did not understand your problem correctly.
    Regards,
    Pooja

  • Why am I having issues with the background image here?

    body {
        text-align:left;
        font-family:Tahoma, Geneva, Helvetica, Arial, sans-serif;
        font-size:11px;
        line-height:17px;
        color:#8a8683;
        margin:0;
        padding:0;
    * html body {
        overflow:hidden;
    * html div#content {
        height:100%;
        overflow:auto;
    div#colBg2 {
        width:519px;
        height:100%;
        margin:0 0 0 449px;
        background:url(/images/colBg2.png) repeat-y top;
        z-index:600;
    table#colText {
        height:100%;
        width:433px;
        text-align:left;
        z-index:700;
    <div id="colBg2">
      <div id="colText">
          <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum.</p>
      </div>
    </div>
    What this is supposed to do is show background image colBg2.png as a column extending from the top of the viewport to the bottom, whether there's enough text to fill it or not. If it doesn't, then it shouldn't produce a scrollbar. It uses 100% vertical height hacks, as demonstrated in the code above.
    When there's more text than the viewport can handle, there's a scrollbar, and the colBg2 successfully scrolls along with the text contained in colText. HOWEVER... when that background scrolls upwards so we can go down the page, it stops tiling. It stops wherever the viewport ends.
    If I stretch the window to reveal more of the column, no problem. It tiles just fine, and extends all the way to the end of the screen. But not if I scroll down.
    Anyone know if I'm doing anything wrong with this code, or if there's an obvious fix that isn't occuring to me?

    I was just about to prepare that for you guys when I had a quick flash to try applying the background image directly to the table instead
    of a containing div. I'm sure there was a reason I used a containing div to begin with, but can't for the life of me remember why right now. I'm sure it'll hit me at some point and I'll probably be back here when it does, but so far eliminating the containing div altogether has produced the desired effect. =)

  • Problems with the background image size in a photobook

    Hi there, I really need help here. When I make a photobook I want to display my images large, taking the whole page. To do that I put the image as a background and it's OK. My problem is that when I do this, iPhoto always crops it. I have to use the move tool to move the image up and down, left or right to chose a best position. I don't want to do this, I want my image to be shown perfectly from end to end. I have to resize the image in many ways, even used the book's native resolution but it still doesn't work. If I choose "fit photo to frame size" I end up with two stripes at the top and the bottom of the page.
    Please help me, what size should I resize my image to, so that iPhoto displays it as it is?
    Thank you

    Hi
    The fact you are using a Mac is why both myself and JCellini assumed you where using a pre IE7 version.
    But the code you are using to test in IE will cause a problem with any 'virtual machine' such as crossover, because it cannot reference anything outside its own assigned section of the drive, and referencing the png in the way you are would be for it an invalid reference, it also would not work in any browser when you uploaded the site.
    Change - background-image:url(file:///Macintosh  HD/Users/myname/Documents/websites/test/Test/images/test_back.png);
    To - background-image:url(images/test_back.png);
    But if the region is not editable I would suggest you temporarily make it so, externalize your css to a css file, insert a link to the external css file in your head content, then lock the region once again. This way you will always be able to edit your css without worrying about 'locked regions'.
    PZ
    www.pziecina.com

  • Fill the page edge to edge with my background image

    how do i get rid of the white space around my pages document when I go to print?????
    I just want to fill the page edge to edge with my background image

    You need to create an image the size of your page and send it to the back.
    If you are talking about a non-printing white margin, then that has to do with your printer, what it can print, its printer driver, and how you have that set in Print Setup…
    Most printers do not print to the edge of the paper. How much they inset varies, you need to check the specs for your model.
    Peter

  • Buttons with transparent background ?

    HEllo everyone:
    I have a background with a degrade color effect where I need
    to insert buttons with transparent back so dregrade can be
    viewed... welll I tried to create those buttons in FW and it is
    impossible in JPG, the I tried GIF but it does not show the white
    letters.. then I finally achieved it creating buttons in PNG and
    calling them as they are: PNG files... it works OK. but when I
    visited other computers, in som of them, I do not know why, the
    browser automatically adds a white or black back tpo the buttons,
    so it takes off the effect because it covers the degrade.... Does
    anyone please know how to deal with it ? I was wondering if this is
    much better to create all the buttons and headers as flash movies
    an insert them, but my customer requirements ar not flash at all in
    oreder to be seen in aall handhelds also.... thanks in
    advance...

    .oO(Sw Jiten)
    >Thanks Micha. It works great now. Just one curiosity: Why
    "definetly not" about
    >Flash ? Flash is working on most of the PC's now... isn't
    it time to be more
    >open to this friendly technology ?
    It's not a friendly technology, that's the problem. It
    creates many
    usability and accessibility problems and may even affect the
    system's
    performance (like any plugin does) and security. Additionally
    search
    engines are usually not able to read a Flash's content and to
    follow any
    links in it.
    Like JavaScript Flash is highly overrated and used too often
    (IMHO). It
    can be an advantage and add something useful to a site, but
    it should be
    used rarely and properly.
    > Another question: I am trying to find a pop-up calendary
    which lets you to
    >choose a date, and as soon as you do it, it changes the
    text field that you
    >have to your left (You have both text field and
    Calendary)
    >
    > I have looked for it and found many solutions in
    JavaScript on google, however
    >none of them change the text field values... any help ?
    thanks in advance...
    Can't help you with that at the moment.
    Micha

  • Cannot get an Apex HTML region with table with a background image to resize image to fit table

    I want to achieve this: Table whith background image but cannot get it to work in an Apex page with HTML region.
    Adding the following code to the html region:
    <table class="tableWithBackground" width="300px" height="200px" border="1">
        <tr>
            <td>
                <img class="tableBackground" src="#APP_IMAGES#Demo.jpg">
                Hello
            </td>
            <td>
                World
            </td>
        </tr>
        <tr>
            <td>How are<br><br><br><br><br>you?</td>
            <td>I am fine</td>
        </tr>
    </td>
    Results in a page with a table but without borders (at his stage I have not yet uploaded the Demo.jpg). After uploading the Demo.jpg results in a table with the entire image placed in het first cell. After placing the class code in the CSS inline property I expected to see the result as is shown in the Table whith background image  demo. For some reason this does not work (the image is no longer visible).
    Can anybody tell me how to achieve my goal?
    Thanks in advance!
    Geert

    Geert01 wrote:
    I want to achieve this: Table whith background image but cannot get it to work in an Apex page with HTML region.
    Adding the following code to the html region:
    <table class="tableWithBackground" width="300px" height="200px" border="1">
        <tr>
            <td>
                <img class="tableBackground" src="#APP_IMAGES#Demo.jpg">
                Hello
            </td>
            <td>
                World
            </td>
        </tr>
        <tr>
            <td>How are<br><br><br><br><br>you?</td>
            <td>I am fine</td>
        </tr>
    </td>
    Results in a page with a table but without borders (at his stage I have not yet uploaded the Demo.jpg). After uploading the Demo.jpg results in a table with the entire image placed in het first cell. After placing the class code in the CSS inline property I expected to see the result as is shown in the Table whith background image  demo. For some reason this does not work (the image is no longer visible).
    Can anybody tell me how to achieve my goal?
    This is a workaround. What's your real goal? Why do you want to do this?
    What browser(s)/version(s) are you using? All current browser versions have support for CSS3 background sizing which is the proper way to do this.

  • Need Help with Complex Background Images

    Hey, Macromedia, I mean, Adobe Dreamweaver users. I have a
    dilemma, before you read further, look at this website:
    https://statons.rtotogo.com/rtotogostore/rto_store/sign_in.asp.
    Notice the background images. The light tan stripe at the top, the
    orange/yellow stripe beneath it, and the darker tan color that
    encompasses the rest of the background. When you go to a longer
    page on the site, the top two colors do not repeat, and as the page
    shrinks on smaller pages, so does the darker tan background. How
    can I do this? I've seen it done before, and I read the source
    code, but I am confused as to how I can accomplish this..... Please
    advise! I am in desperate need of your expertise!
    Thanks in advance for the help.
    Chuck

    It's controlled using CSS check out the css script and the
    backgounds are
    set to repeat along the x axis only
    cheers
    Ian
    [email protected]
    http://www.edwards-micros.co.uk
    "ChuckRWD" <[email protected]> wrote in
    message
    news:e93ha7$lmi$[email protected]..
    > Hey, Macromedia, I mean, Adobe Dreamweaver users. I have
    a dilemma,
    > before you
    > read further, look at this website:
    >
    https://statons.rtotogo.com/rtotogostore/rto_store/sign_in.asp.
    Notice
    > the
    > background images. The light tan stripe at the top, the
    orange/yellow
    > stripe
    > beneath it, and the darker tan color that encompasses
    the rest of the
    > background. When you go to a longer page on the site,
    the top two colors
    > do
    > not repeat, and as the page shrinks on smaller pages, so
    does the darker
    > tan
    > background. How can I do this? I've seen it done before,
    and I read the
    > source code, but I am confused as to how I can
    accomplish this.....
    > Please
    > advise! I am in desperate need of your expertise!
    >
    > Thanks in advance for the help.
    > Chuck
    >

  • Lock buttons to a background image

    Hello everyone a few questions, i created a background image like the one i added into the post since the program im making have 3 steps i would like to put each step into one of the boxes of the background image and i want them to stay in that area always! 
    I have set a max workarea that fits the background however if i maximize the window all the graph and bolean and what not moves im pretty sure its (or well i hope) a simple fix i just cant get them to stay where i put them lock them down so to speak hope you understand what im trying to say  thanks

    It sounds like you have turned autoscaling on the front panel on. Open the VI properties (File>>VI Properties) and select the Window Size tab. I suspect the Scale all objects on front panel as the window resizes checkbox is checked. Uncheck it (it is not checked by default). It if is already unchecked, then you probably need to use VI server to actively set positions on your front panel when the VI resizes. All front panel objects can be moved around on the front panel using VI server properties (Position). Trigger the action using the Panel Resize event in an event structure.
    If you have a lot of objects, using VI server to move things around can get very tedious. An alternate approach is to break your front panel into panes using splitter bars (which you can hide by making them transparent). But your individual groups.
    There is an enormous amount of information on how to handle resizing front panels in these forums. Do a little digging and you will find a lot.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • Help with repeating background image

    At
    http://www.hammerstones.net/music1.htm,
    i've inserted an iframe that seems to prevent the right edge
    background image from displaying. You'll see, it's along the right
    margin on all pages EXCEPT this one. All help is welcome to achieve
    this look.
    Dave

    CSS Menu:
    a { text-decoration: none }
    a:link {
        color: #FFF;
        background: #666;
    a:visited { color: #999 }
    a:hover, a:active, a:focus {
        background: #333;
        text-decoration: underline;
        border-bottom:4px solid gold;
    /**horizontal navbar**/
    nav ul, nav li {
        margin: 0;
        padding: 0;
        list-style: none;
        font-size:20px;
        font-weight:bold;
        text-align:center;
    nav li a {
        float: left;
        display:block;
        padding: 6px;
        line-height: 1.2em;
        width: 8em;
    HTML:
    <nav>
    <ul>
    <li><a href="#">Some link</a></li>
    <li><a href="#">Some link</a></li>
    <li><a href="#">Some link</a></li>
    </ul>
    </nav>
    What it looks like:
    Nancy O.

Maybe you are looking for

  • A list of supported Android Phones for Cisco Jabber Client.

    Hi there, I opened a discussion before about the Cisco Jabber Client for Android phones. This product from Cisco is only official support bij a several mobile Android telephones. (very poor) As everyone knows is that the mobile market is continious i

  • IPod Touch 5th gen starting music by itself.?

    My IPod Touch 5th generation has this problem that when I choose to play some music after sometime it will either pause, skip, or fast forward the song. Even if the IPod is locked. Sometimes it even turns on Siri. This all started yesterday, by the w

  • User "system" doesn not have Permission "modify"

    Using the Admin console, I am trying to add a new permission to an ACL and I am running in to an error. The ACL is "weblogic.jndi.lightbridge.rms" and I am trying to add the "lookup" permission. The error that I encounter is: User "system" does not h

  • EJB Timer Service

    I've been trying to get the javax.ejb.TimerService working. As stated in the J2EE 1.4 tutorial, it is possible to use the TimerService in an entity bean. In fact, it states that if I wanted a timer for each instance of an entity bean, to create the t

  • Numbered bookmarks

    In Acrobat Pro version 8 I could generate a PDF from a Word (2007) document that contained numbered headings such that the PDF bookmarks were created with the same numbering system and hierarchy. I find that in Acrobat 9 Pro I cannot generate the num