How do you do this... Centering an image at the bottom of a container.

Hi,
I am relatively new to Dreamweaver... and I want to center an image at the bottom of my "maincontent" container.
I have the image placed in the the proper conatiner, yet no matter what rule I set I cannot not seem to get it to center at the bottom.   Is this possible?
Thanks!
Gary

This is another way to center the image under a block of text inside a div:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#maincontent{
     width: 980px;
     margin: 0 auto;
/* to center an image with a width declared in the html,
margins do not work on inline elements - an image is an inline element,
so you need to add display: block */
.imgcenter {
margin: 0 auto; display: block;
</style>
</head>
<body>
<div id="maincontent">
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis ligula lorem, consequat eget, tristique nec, auctor quis, purus. Vivamus ut sem. Fusce aliquam nunc vitae purus. Aenean viverra malesuada libero. Fusce ac quam. Donec neque. Nunc venenatis enim nec quam. Cras faucibus, justo vel accumsan aliquam, tellus dui fringilla quam, in condimentum augue lorem non tellus. </p>
<img src="1788114-org.png" alt="" width="250" height="167" class="imgcenter" />
</div>
</body>
</html>

Similar Messages

  • HT4191 iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.

    iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.  I've seen reference to the  "My iPhone" local storage put no mention on how you create this folder or access this folder within the Notes app.  I realize storing information in a local storage like this provides no syncing between other iDevices but that is exactly what I'm looking for.  I'm running iOS7.0.4 on a iPhone 5S, and a iPad Air.  Any help would be greatly appreciated.

    If you go to Settings > Notes > Default Account you will see "On My iPhone" as the default account and the only choice if you have not enabled syncing Notes in Settings >iCloud or Settings > Mail, Contacts, Calendars. If you have enabled syncing you can still select "On My iPhone" as the default account. When you are in the Notes app you won't see any accounts listed if you have not enabled syncing because they are all in the On My iPhone account and that is the only place possible. It is not a folder that you create.

  • Background noise removal takes about 3 seconds into each clip in timeline to kick in, so each clip has noise in the first few seconds.  How do you get this to remove noise from the very start of the clip?

    Background noise removal takes about 3 seconds into each clip in timeline to kick in, so each clip has noise in the first few seconds.  How do you get this to remove noise from the very start of the clip?

    insert a 5 second gap in the beginning of the timeline.

  • How can you search this forum without searching all the other forums

    how can you search this forum without searching all the other forums at the same time which is a big fat waste of time.

    Follow this tip to create a bookmark to a search page that searches only the forum you want or...
    Browse with Firefox and enable this Greasemonkey script, which forces all searches from a sub-forum to be local.

  • How do you permanently delete a file image in the catalogue

    how do you permanently delete a file image in the ?

    Highlight the image, press the delete key, in the dialog that appears click the button that says, "Delete from disk."
    If you want to delete multiple images you can go through your images and when one is highlighted that you want to delete press the X key. That will mark the image for deletion. After you have gone through the images on Windows you can press Ctrl/backspace to display the same dialogue I described above. And you can choose to remove the marked images from the catalog or to delete them from your disk.

  • I need to create a ghost image of my G4 iBook (OSX 10.3.9) and replace the OS9 on my G4 tower with the created iBook ghost image. How do you do this?

    I need to create a ghost image of my G4 iBook (OSX 10.3.9) and replace OS9 on a G4 tower with the Ghost image. How do you do this? Will my applications still work?
    The iBook is running Pather, i have tons of programs i use on it, project files, etc... and my G4 Mac tower is more powerful, faster, and more reliable than the iBook. I basiclly just want to take the entire OS, programs and files... create an image, and drop the image on the G4 Tower so it basically will function just like the iBook. Like a mirror image of everything that is on the iBook.  I know that you can create image files in the Disk Utility on Panther, but will that back up the entire OS with settings, programs, files and all?  ive never done anything like this before, so i wanted to post this up to see if i would get an answer. In the meantime, im reading "Mac OS X, Help Desk Essentials By Owen Linzmayer" to see if i can find the steps to do this.
    Any help would be greatly apprciated. Much thanks!

    Can't be done as an exact copy from one Mac to the other.  The operating systems are system specific. First make sure your system doesn't need a firmware update to get 10.2 or later on it. You'll need to install 9 on it if it does, direct from a 9 retail CD that is compatible with it *.  This disc can't say Upgrade, Dropin, or OEM. To determine compatibility, identify your G4 tower:
    http://support.apple.com/kb/HT3082
    http://docs.info.apple.com/article.html?artnum=42739
    Then look at the OS 9 compatibility:
    http://docs.info.apple.com/article.html?artnum=25517
    Then apply the correct update
    http://docs.info.apple.com/article.html?artnum=86117
    The last Mac OS 9 to come retail is 9.2.1, and that's newer than 9.0.4, 9.0.2, and 9.1.
    Your ghost image can be done using cloning software, but then you'll have to use a retail 10.3 installer and 10.3.9 combo update on the G4 tower.  Then use the Migration Assistant to import the data from the clone of the iBook. The 10.3 retail disc looks like * and does not say upgrade, dropin, or OEM.  The 10.3.9 combo update is here:
    http://www.apple.com/support/downloads/macosxcombinedupdate1039.html
    The clone to an external hard drive can be done with these instructions*:
    http://www.macmaps.com/backup.html The import of the external hard drive with the migration assistant can be done with these instructions:
    http://docs.info.apple.com/article.html?artnum=25773

  • Just bought a new printer ( Canonpixmaip4920) all other files print ok but when I print a I Tunes cover playlist in comes out backwards or mirror image? How do you fix this?

    Hi,
    I just bought a new canon pixma ip 4920 printer... all other files print ok except when I try to print a playlist from I tunes it prints out backwards or a mirror image? How do you fix this?
    Jim

    Unfortunately changing the epub text size does not change the view at all. The images do not seem to change when the text size setting is changed.
    The resolution of my machine is already at the max setting, so increasing the resolution is kind of impossible.
    Any other suggestions I could try?  Thank you for your suggestions!

  • If you right-click an image you can select to "Block Images" from the site, but how do you reverse this choice?

    If you right-click an image on a web page you can select to
    "Block Images from [the url of the site]".
    This works well, particularly to make the page printer-friendly, but how do you reverse this choice to see the images again?

    You can see all permissions for the current page in Tools > Page Info > Permissions
    If it is from a different domain then use this:
    *A way to see which images are blocked is to click the favicon (<i>Site Identification</i> icon) on the left side of the location bar.
    *A click on the "More Information" button will open the Security tab of the "Page Info" window (also accessible via "Tools > Page Info").
    *Open the <i>Media</i> tab of the "Page Info" window.
    *Select the first image and scroll down though the list with the Down arrow key.
    *If an image in the list is grayed and there is a check-mark in the box "<i>Block Images from...</i>" then remove that mark to unblock the images from that domain.

  • How do I copy and paste an image form the internet to Keynote. I have done this successfully in the past by selecting copy and then paste by using the right click function and now am unable to do so. I am thinking it is an outdate OS problem...not sure.

    How do I copy and paste an image from the internet to Keynote. I have done so successfully in the paste by using the copy and paste right click functions but am unable to do so now. That was about a year ago that I attempted that I was able to do this. Thank you for your help.

    Some images are copy-protected.
    If all else fails, you can make a screen shot of the image: 
    With the image visible in your browser, press CMD-Shift-4 and your cursor will change to crosshairs.
    Position the cross hairs at one of the corners of what you want to copy and drag to the opposite corner, then release the mouse. An copy of the image will be saved to your desktop.
    You can now edit and use this image.
    Be sure to respect copyrights.
    Message was edited by: bwfromspring hill

  • I am using Toast 11 to burn dvd's. With FCP10.1.3  I could go into the FCP shared folder grab the encoded .m2v file and drag it into Toast 11 and author dvd and burn.  How can you do this with FCP 10.1.4?

    I am using Toast 11 to burn dvd's. With FCP10.1.3  I used to go into the FCP shared folder grab the encoded .m2v file and drag it into Toast 11 and author dvd and burn.  How can you do this with FCP 10.1.4? 

    BenB it creates a disc image only and it's not in .m2v. I think it saved it as an Apple Pro Res 422 format instead. The disc image file format will not allow
    Toast 11 to create menus etc.  Thanks for your help.

  • How do I use the time capsule to share itunes music between multiple apple devices? Also, is it possible to control the music on one device using another, and how do you set this up?

    How do I use the time capsule to share itunes music between multiple apple devices? Also, is it possible to control the music on one device using another, and how do you set this up?

    unless i'm missing something, i think you got mixed up, this is easy google for walk throughs
    i'm assuming this is the new 3tb tc AC or 'tower' shape, if so, its wifi will run circles around your at&t device
    unplug the at&t box for a minute and plug it back in
    factory reset your tc - unplug it, hold down reset and keep holding while you plug it back in - only release reset when amber light flashes in 10-20s
    connect the tc to your at&t box via eth in the wan port, wait 1 minute, open airport utility look in 'other wifi devices' to setup the tc
    create a new wifi network (give it a different name than your at&t one) and put the tc in bridge mode (it may do this automatically for you, but you should double check) under the 'network' tab
    login to your at&t router and disable wifi on it
    add new clients to the new wifi network, and point your Macs to the time machine for backups

  • After upgrading my iPhone4 to the latest IO it no longer connects to wifi, how do you fix this?

    After upgrading my iPhone4 to the latest IO it no longer connects to wifi, how do you fix this?

    knifepainter wrote:
    What I know is that the phone worked perfectly fine until I upgraded the software. I've tried resetting the network settings to no avail. I've shut the phone off, put it in a ziplock baggie and then into the freezer for 15 minutes. This made the wifi work temporarily but then it goes back to being grayed out. The wifi does not work at other wifi sites away from my home as well. Seems like an apple issue to me and would appreciate someone coming up with a fix, apparently I'm not the only one having this problem. Thanks for replying to my query, any ideas?
    It's likely a hardware issue.  The iOS will not directly cause this issue.
    Use this article first:
    iOS: Wi-Fi settings grayed out or dim - http://support.apple.com/en-us/TS1559
    If that fails to resolve it, then try setting it up as new and testing again.
    How to erase your iOS device and then set it up as a new device or restore it from backups - http://support.apple.com/en-us/HT4137
    If the issue remains even after set up as new, it's a hardware problem, not a software problem.  You'll need to contact Apple for you hardware service options.  If within warranty it should be free.  If not, expect to pay $149 USD + tax if it's an iPhone 4, $199 USD + tax if it's an iPhone 4S.

  • Need to show proof of purchase to my insurance company, but my phone was replaced by apple so has a different imei number to the one on my receipt, how do you sort this out??

    Need to show proof of purchase to my insurance company, but my phone was replaced by apple so has a different imei number to the one on my receipt, how do you sort this out??

    Contact Apple and see if they can provide any documentation of the device swap.

  • My iPhone is disabled, and I need to restore it, how do you do this?

    So I was just on the phone with Apple, and apparently you now have to pay for help on the phone? Stupidest idea ever, but what are you going to do? Anyways, some of my friends thought it would be funny to disable my phone, and now it says "Connect to iTunes" and whenever I connect it to iTunes, it says "iTunes could not connect to the iPhone "jakes iPhone" because it is locked with a passcode. You must enter your passcode on the iPhone before it can be used with iTunes." How do they expect me to enter my passcode when it's disabled? How do I fix this, it's bugging me that I can't get into my phone. Also, I heard you have to restore your iPhone, how do you do this? I don't know how the new iTunes works, it's really frustrating.
    P.S- When I tried to restore it, it says "Are you sure you want to restore the iPhone "jakes iPhone" to it's factory settings?"
    I don't want to restore my phone to it's factory settings, that's what it doesn't get.
    The point of the passcode is so that it doesn't get any person information taken away. But what's the point if this happens? I mean, either way, I have to delete all the crap anyways to get it working again... Please help me, thanks.

    The point of a passcode is to protect your information from "friends" who do things to you like they just did.  They have disabled your device and you have to restore your phone in iTunes.  Hopefully you have performed a backup recently and you can restore from that backup.  As far as paying for support, you don't have a mechanic diagnose and repair your car problems without paying so why would Apple or any other company not charge for support?  However, any charge that you have to pay for support to fix this issue......I would have my so called friends pay the bill.

  • How do you make an array of image icons and then call them?

    How do you make an array of image icons and then call them, i have searched all over the internet for making an array of icons, but i have
    found nothing. Below is my attempt at making an array of icons, but i cant seem to make it work. Basically, i want the image to match the value of the roll of the dice (rollVal)
    Any help would be greatly appreciated, some code or link to tuturial, ect.
    /** DiceRoller.java
    * Roll, print, Gui
    import javax.swing.*;
    public class DiceRoller extends JFrame
         private ImageIcon[] image  ;
         public String[] images = { "empty", "dice1.jpg",
                   "dice2.jpg", "dice3.jpg", "dice4.jpg",
                   "dice5.jpg", "dice6.jpg" };
         public Dice die;
         private int rollVal;
         public int rollNum;
         private JLabel j1;
         public DiceRoller(){
              j1= new JLabel("");
           die =new Dice();
           int rollVal;
           rollVal = die.roll();     
           image = new  ImageIcon[images.length];
         for(int i = 0; i < images.length; i++){
          image[i] = new ImageIcon(images);
         if (image!=null){
              j1.setIcon(image[rollVal]);
         System.out.println("Roll = "+die.roll());

    Demo:
    import java.awt.*;
    import java.net.*;
    import javax.swing.*;
    public class IconExample {
        public static void main(String[] args) {
            EventQueue.invokeLater(new Runnable(){
                public void run() {
                    launch();
        static void launch() {
            try {
                Icon[] icons = new Icon[6];
                for(int i=0; i<icons.length; ++i) {
                    String url = "http://www.eureka-puzzle.be/cast/images/dice" + (i + 1) + ".jpg";
                    icons[i] = new ImageIcon(new URL(url));
                display(icons);
            } catch (MalformedURLException e) {
                throw new RuntimeException(e);
        static void display(Icon[] icons) {
            JPanel cp = new JPanel();
            for(Icon icon : icons) {
                cp.add(new JLabel(icon));
            JFrame f = new JFrame();
            f.setContentPane(cp);
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.pack();
            f.setLocationRelativeTo(null);
            f.setVisible(true);
    }

Maybe you are looking for