How do I change an image border color to another color - Dreamweaver CS5?

Good day,
I have just learned how to add a border to an image with Dreamweaver CS5 within the Properties Inspector.
After typing the width in pixels in the Border Text Field and pressing the Enter key, Dreamweaver created a black border.
How do I change the image border color to another color?

I added your suggested rule to the Style Sheet "in any order" as you explained. See the image below.
However this did not change the image border from black to light blue. In fact, nothing changed.
Nothing changed because the CSS that has been written into DW is incorrectly written.
You want the following (exactly as written below)
img {border: 4px solid #0062C8;}
You've inadvertently wrapped the rule inside a #main_image container rendering it meaningless.
It's easiest to go into Code View and change
#main_image {
     img {border: 4px solid #0062C8;
to
img { border: 4px solid #0062C8; }
The Property Inspector added a border exactly as I wanted it, other than the color I wanted the border to be. What is the use of this function in Property Inspector if it can add a border within Property Inspector but not let me change the COLOR of the black border that Property Inspector added, to another color?
That's a deceptively simple, yet valid, question with a long answer.
Back in the dark old days of web design web designers were restricted to inline HTML formatting which offered  border properties but no colors.
CSS styling offers colors and more but has to be written differently.
These days. it's best to avoid HTML formatting. Unfortunately border="4px" in the PI still allows it. But does not permit color.
Does anyone else out there ever add color borders to their IMAGES (not the containing box for the image) ?
Yes, using CSS.

Similar Messages

  • How do I change vertical menu to a horizontal menu in Dreamweaver CS5?

    Doing a website (my first) for a friend of mine. Followed the Adobe tutorial for a lot of it (with Paul Trani) and have everything done but now my friend wants the menu bar to be horizontal instead of vertical. (I have other questions but this is the big one for now) I do have a CSS file that is linked to all 4 pages. I have hunted and searched to no avail. The page started out as a template (2 column fixed, left sidebar, header and footer). I am hoping I just have to paste some code into it and have found a few suggestions on the web but nothing seems to work. I did get it to the point with a list with no bullets  with no background but can't get it to go horizontal. Then code started showing up on my design page and I gave up and turned to this forum. I would hate to start over. I do not even see a template that has a horizontal menu on it for one of the choices. Any help would be greatly appreciated.

    I think you are confused about how to differentiate between horizontal navigation and vertical navigation.
    In HTML, both are exactly the same. You use a list. So both will be just like you describe them:
    <ul>
    <li><a href="#">Link one</a></li>
    <li><a href="#">Link two</a></li>
    <li><a href="#">Link three</a></li>
    <li><a href="#">Link four</a></li>
    </ul>
    Now, there's your navigation. Done. So how do we do an horizontal nav? Well we tell web browsers to format our HTML code in a style sheet, called a Cascading Style Sheet, or CSS. So let's give the <ul> a tag that tells the browser that it's not just a simple unordered list; it's special and has to be set up a certain way:
    <ul id="nav">
    <li><a href="#">Link one</a></li>
    <li><a href="#">Link two</a></li>
    <li><a href="#">Link three</a></li>
    <li><a href="#">Link four</a></li>
    </ul>
    Now, let's go to our style sheet and create the style for the id "nav." And remember, anything with an ID on a web page must occur only once. If you're going to have several "nav" tags on your page, you have to make a class. The difference (in CSS) between a class and an id is the use of a hash "#" for an id and a dot "." for a class.
    So here's the CSS for the horizontal navigation:
    #nav {
              width: 100%;
              float: left;
              margin: 0 0 3em 0;
              padding: 0;
              list-style: none;
              background-color: #f2f2f2;
              border-bottom: 1px solid #ccc;
              border-top: 1px solid #ccc;
    #nav li {
              float: left;
    #nav li a {
              display: block;
              padding: 8px 15px;
              text-decoration: none;
              font-weight: bold;
              color: #069;
              border-right: 1px solid #ccc;
    #nav li a:hover {
              color: #c00;
              background-color: #fff;
    Here you're floating both the list and the list items left. Floating the list items left is what pulls them into a nice horizontal row, stacking the items from left to right. However, because of how floats behave, the containing list will collapse to a height of zero unless it is also floated left.
    And that wouldn’t be a major problem, except the list has a background color and if the list collapses, that background color won't show. This way, it’ll fill up the entire width of the page (or of its container, if it’s in a container with a width set).
    Additionally, the only margin you see will be the bottom one, so the list items will make their own margins and behave themselves. The list-style is set to “none,” which removes the bullets.
    Now all navigation will certainly be a link, so I style the list items that are links (#nav li a) with padding that will space them out, get rid of the default underline, setting the text decoration to none, making them bold and creating a thin right border. Then I change the color on the nav for a hover.
    Now, vertical is the default for a list.
    Here's the difference:
    You keep list-style: none;
    You get rid of your floats.
    You get rid of the 100% width, unless you have it corralled in a containing div, like a left or right sidebar.
    Boom! you're done.
    -Mark

  • How do I change an image in muse composition news feature widget?

    how do I change an image in muse compostion news feature widget?

    There are multiple ways to do that.
    You can either use File > Place to place an image on the page somewhere and then drag the image inside the widget target container.
    Or you can go to Assets panel, go to the image you want to change, right (or command) click on it and choose Relink. Then navigate to the new image and select it to replace the current image.
    Hope this helps.
    Cheers,
    Vikas

  • How do I change the image selected for the finalized movies pane in all events?

    How do I change the image selected for the finalized movies pane in all events? I made a movie some time ago in iMovie, and a still from this now appears as the image for Finalized Movies in the All Events pane (as well as showing up if I then click on this pane to take me to Finalized Movies). Anyone know how to change or delete this image, please?

    Unfortunately, the suggested solution in that thread does not work and the thread appears to be closed to replies.  That is, even though I am logged in the Reply|Quote|Mark as answer|Report as abuse items are missing.
    The suggested solution is:
    First, I found I had "img100.png" in  C:\Windows\Web\Screen  and
    C:\Windows\WinSxS\x86_microsoft-windows-themeui-client_31bf3856ad364e35_6.2.9200.16384_none_69ee3fa2269e545e
    1. Belonging to the Administrators Group, I replaced file Owner TrustedInstaller with my Username on both "img100.png" files
    2. After resizing the image I wanted to see on the Login screen to the resolution of "img100.png" file,
    I copied and pasted it to both "img100.png" files keeping this way the format (extension) and resolution of the original "img100.png" file,
    which I permanently deleted.
    However, I have not been able to replace the img100.pgn in C:\Windows\Web\Screen even after taking ownership of it and setting the permissions for my userid to All.  I edit it with mspaint and then try to save it. The save starts that then says the
    save was interrupted.
    The appears to be some additional protection besides the standard acls.
    http://www.saberman.com

  • How do I change the image title when it is uploaded from iphoto to iweb. At the moment the image title is /shapeimage_1.png and I would like to put in something more relevant than just shapeimage?

    How do I change the image title when it is uploaded from iphoto to iweb. At the moment the image title is /shapeimage_2.png and I would like to put in something more relevant than just shapeimage_2?

    When you drag images from iPhoto to iWeb, iWeb retains the original filename.
    When you use a mask, iWeb creates a png file with the shapeimage name.
    So do not use a mask and crop your images before dropping them on the iWeb canvas.
    When you use an irregularly shaped mask, then png files are created. They have to be png because of the transparency of the shape.
    You can use a 3rd party application to create the png images yourself, and give them a proper name.
    Or use the published png files, rename them and drop them back onto the iWeb canvas, while first removing the previous images.

  • When you drag a link onto your desktop, how do you change the image for the shortcut?

    When you drag a link onto your desktop, how do you change the image for the shortcut?

    Select it, hit command-i (or choose File -> Get Info), select the icon in the info window and paste something else there.

  • How can i change the image in portal logon screen

    hi guys
    pls tel me
    how can i change the image in portal logon screen
    thanks
    regards
    kamal

    Hi
    Download the par file com.sap.portal.runtime.logon.par.bak from
    Go to System Administration -- Support -- Portal Runtime -- Browse Deployment.
    The path should ROOT/WEB-INF/deployment/pcd. Now download that file into local system.
    Create a Par project and make necessary chenages ..i.e
    Open the downloaded par file with WinZip and inside the lib folder three jar files named com.sap.
    portal.runtime.logon_api.jar, com.sap.portal.runtime.logon_core.jar and umelogonbase.jar will be there. Copy those files in the folder u2018libu2019 in par project.
    Now change a branding Image...i.e
    Replace the branding-image. jpg with your company branding image in the same name.
    Once modifications are done,then create a par project and upload the par file into portal.
    Go to the path System Administration -- Support -- Support Desk -- Portal Runtime -- Administration console.
    then browse the file and click on upload.
    Connect to server where the Portal WebAS is running and go to:
    (drive):\usr\sap\<system id>\<system instance>\j2ee\cluster\server0\apps\sap.com\com.sap.security.core.admin\servlet_jsp\logon\root\layout.
    There you will find the images used on logon screen, you can replace them for your
    company images, please take care with the width of the images, as usual, to make this
    change effective, you must restart the whole WebAS.
    Regards,
    Raju

  • How do I change the image used on an movie project icon? iMovie seems to select an image at random from the images I imported.

    How do I change the image used on an movie project icon?
    iMovie seems to select an image at random from the images I imported.

    Not sure I understand how to use what you have posted. Here's what my init() looks like:
    public void init()
    setLayout(new BorderLayout());
    p=new Panel();
    p.setLayout(new GridLayout(1,1));
    callnowButtonURL = getURL(callnowButtonFilename);
    if (callnowButtonURL != null)
    callIcon = new ImageIcon(callnowButtonURL,"call");
    endcallButtonURL = getURL(endcallButtonFilename);
    if (endcallButtonURL != null)
    endIcon = new ImageIcon(endcallButtonURL);
    b=new JButton(callIcon);
    b.setBorder(new EmptyBorder(0,0,0,0));
    b.setBorderPainted(false);
    b.addActionListener(this);
    p.add(b);
    add(p,"Center");
    Now the ActionListener is basically:
    public void actionPerformed(ActionEvent e)
    if (mybool == false)
    <Perform actions here set mybool to true>
    Change JButton b to use EndIcon
    else
    <Perform actions here set mybool to false>
    Change JButton b to use CallIcon
    Can you clarify how to perform the action I require? You can have a couple of Dukes if you can help me sort this out.

  • How Do I Change The Image Used For The Power Up Screen?

    Windows 8.1 Pro with all patches.
    How do I change the image that is shown when you power up a PC?
    Note: This is not the Start Screen background or the Lock Screen background or the Desk Top background.
    http://www.saberman.com

    Unfortunately, the suggested solution in that thread does not work and the thread appears to be closed to replies.  That is, even though I am logged in the Reply|Quote|Mark as answer|Report as abuse items are missing.
    The suggested solution is:
    First, I found I had "img100.png" in  C:\Windows\Web\Screen  and
    C:\Windows\WinSxS\x86_microsoft-windows-themeui-client_31bf3856ad364e35_6.2.9200.16384_none_69ee3fa2269e545e
    1. Belonging to the Administrators Group, I replaced file Owner TrustedInstaller with my Username on both "img100.png" files
    2. After resizing the image I wanted to see on the Login screen to the resolution of "img100.png" file,
    I copied and pasted it to both "img100.png" files keeping this way the format (extension) and resolution of the original "img100.png" file,
    which I permanently deleted.
    However, I have not been able to replace the img100.pgn in C:\Windows\Web\Screen even after taking ownership of it and setting the permissions for my userid to All.  I edit it with mspaint and then try to save it. The save starts that then says the
    save was interrupted.
    The appears to be some additional protection besides the standard acls.
    http://www.saberman.com

  • How can i change a pdf file type to another file type

    how can i change a pdf file type to another file type

    You can copy the contents and paste it into a Word file. Just don't expect everything to transfer or to retain all of the formatting.

  • How i can change my i tune registration to another computer

    how i can change my i tune registration to another computer

    For your iTunes library, follow the instructions included with this link.
    http://support.apple.com/kb/HT1751

  • Can any one out there tell me how to insert a zoom tool into my slide show in dreamweaver CS5.5

    Hi there
    Can any one out there tell me how to insert a zoom tool into my slide show in dreamweaver CS5.5
    My slide show consists of lots of thumb nails of paintings under a large painting.
    When the small painting thumb nail is clicked the large painting appears.
    I would like to be able to enlarge all areas of the large painting when a zoom tool is placed over areas of the large painting.
    Really appreciate any one help.

    Here's the Dreamweaver forum...
    http://forums.adobe.com/community/dreamweaver/dreamweaver_general

  • How do I change an image to Spot color?

    I've linked to an image of our logo in a document, but the file needs to be in two color spot before I print. How do I change our logo from a CMYK file to a SPOT one?

    You cannot change the color of the linked logo in ID. You'll need to open the logo in the appropriate editor and make a new spot color version, then link that.

  • How can I change the images for af:statusIndicator?

    The default icons (busy and not busy) have a deep blue background which is different from our chosen background color for the application.
    As per the ADF documentation for Web development Section 16.6:
    "... you can use skins to change the actual image files used in the component."
    Is there any code example on how to change the image file for af:statusIndicator?

    Hi,
    You can check [this post|http://forums.oracle.com/forums/thread.jspa?threadID=615673] for some samples.
    -Arun

  • How do I change my HP 2540 to print in color

    How do I change from grayscale to print in color on HP 2540?

    Hi,What operating system you are using? What application you are printing from?

Maybe you are looking for

  • When I click on a bookmark folder it doesn't stay open.

    This is a minor problem, basically an inconvenience. I click on Bookmarks on the menu bar and it drops down correctly. When I click on a folder in the bookmarks list, it no longer holds that folder open as I move the mouse across to select a bookmark

  • How To Reduce Song Rating

    Okay, there is nothing easier than adding stars to rate songs. But to demote a song I can't find a way to take stars off. iTunes help only seems to offer info on adding stars. I know the answer will be dead simple but my nick name should be Homer Sim

  • Verifying digital signature

    Hi, I am a newbie to security. All I want is to sign a message with a private key and check the signature with corresponding public key. But running below program I always keep getting "Signature failed. Possible imposter found." What am I doing wron

  • X230 First Boot

    Hello, I've just received my newly purchased x230 thinkpad, I've connected it to the power, and booted up.. At first some weird unclear screen, and then disappeared.. If I touched the screen a bit, moved it back and up, sometimes a quick bizarre scre

  • HT2090 iSight not working neither after resetting SMC? What other to do?

    Hello, I don't know how to solve this problem with my builtin iSight camera on a MacBook. I tried several times resetting the SMC and at the begginning it worked, but lately this procedure is giving no results any more. I checked the System Profiler