How do I make a box change radius when hovering in Dreamweaver CS6 CSS

I am trying to make the radius of my box containing text change when I hover over the link. I don't want the link to be the text itself because I need the link to span across each of my images.
So here is my HTML:
<div id="contentbox">
    <div id="pageblock">
       <div id="cdphoto">
             <h2><a href="costumedesign.html"><div class="h2box">COSTUME DESIGN</div></a></h2>
       </div>
       <div id="gdphoto">
       <h2><a href="graphicdesign.html"><div class="h2box">GRAPHIC DESIGN</div></a></h2>
       </div>
       <div id="hmphoto">
       <h2><a href="hairandmakeup.html"><div class="h2box">HAIR &amp; MAKEUP</div></a></h2>
CSS:
.h2box {
  height: 20px;
  width: 240;
  margin-top: 272px;
  -moz-box-shadow: inset 0 0 10px #777777;
  -moz-box-shadow: inset 0 0 10px #7777777;
  box-shadow: inset 0 0 10px #777777;
  background-color: #000;
  opacity: 0.8;
help

Moved to the main Dreamweaver support forum.
Without seeing the actual web page, it's difficult to give definitive advice on CSS. However, there are several problems with your HTML markup.
It looks as though you're using <h2> tags for a navigation menu. <h2> tags are for second-level headings. They're not suitable for menu items.
You have <div> elements nested inside your <h2> elements. A <div> is a standalone element that forms a block of its own. It cannot be used inside a text element, such as a heading or a paragraph. To apply markup to a part of a text element, you should use <span> instead of <div>.
The simple answer to your original question, though, is to apply border-radius to .h2box:hover.
.h2box:hover {
   border-radius: 15px;
But for better help, post a URL to the page you're working on. Seeing everything in context makes a big difference to the advice that anyone can offer.

Similar Messages

  • How do I stop text from changing colour when hovering over it?

    Hello, I have downloaded a template for Dream Weaver CS6 (Which is the version i am usig). When you hover over one of the boxes the top text changes colour to black instead of staying white... does any one know how i can make it so the text stays the same colour. I will post a print screen of it.
    Before clicking:
    View image: 1
    When hovering over it:
    http://postimg.org/image/wdsii9mab/
    I will post the code of the index page aswell: <!DOCTYPE html> <html lang="en"> <head> <title>Home</title> <meta ch - Pastebin.com
    Any help is appreciated. Thanks.

    Your unwanted pink hover color comes from style.css line 181 here
    .btn_{
        background: none repeat scroll 0 0 #cf3046;    border: medium none;
        border-radius: 3px;
        box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
        color: #ffffff;
        font-family: "Open Sans",sans-serif;
        font-size: 12px;
        font-weight: bold;
        line-height: 15px;
        margin-top: 20px;
        padding: 7px 13px 8px;
        text-decoration: none;
        text-shadow: none;
        text-transform: uppercase;

  • How do I make the header, content, and footer transparent in Dreamweaver CS6?

    I try setting background color to transparent but it just turns white instead. I want to be able to just see my background image and color and have all content "floating" on my web page.
    Also on backgrounds, what is the coding for making sure the background is contained within whatever monitor size it is viewed within or will it automatically scale up/down?
    Thanks,
    Jennifer

    I'm just using a basic Dreamweaver page that has some CSS already in the head (haven't done much work on it yet, just trying to get those things transparent first):
    <!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" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title></title>
    <!-- TemplateEndEditable -->
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    <style type="text/css">
    <!--
    body {
        font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;
        background-image: url(../images/helia_bg.jpg);
        background-position: top;
        background-repeat: no-repeat;
        background-color: #fff0c1;
        margin-bottom: 200px;
        margin: 0;
        padding: 0;
        color: #000;
    /* ~~ Element/tag selectors ~~ */
    ul, ol, dl { /* Due to variations between browsers, it's best practices to zero padding and margin on lists. For consistency, you can either specify the amounts you want here, or on the list items (LI, DT, DD) they contain. Remember that what you do here will cascade to the .nav list unless you write a more specific selector. */
        padding: 0;
        margin: 0;
    h1, h2, h3, h4, h5, h6, p {
        margin-top: 0;     /* removing the top margin gets around an issue where margins can escape from their containing div. The remaining bottom margin will hold it away from any elements that follow. */
        padding-right: 15px;
        padding-left: 15px; /* adding the padding to the sides of the elements within the divs, instead of the divs themselves, gets rid of any box model math. A nested div with side padding can also be used as an alternate method. */
    a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
        border: none;
    /* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */
    a:link {
        color: #42413C;
        text-decoration: underline; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
    a:visited {
        color: #6E6C64;
        text-decoration: underline;
    a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
        text-decoration: none;
    /* ~~ this fixed width container surrounds the other divs ~~ */
    .container {
        width: 960px;
        background-color: #FFF;
        margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout */
    /* ~~ the header is not given a width. It will extend the full width of your layout. It contains an image placeholder that should be replaced with your own linked logo ~~ */
    .header {
        background-color: #ADB96E;
    /* ~~ This is the layout information. ~~
    1) Padding is only placed on the top and/or bottom of the div. The elements within this div have padding on their sides. This saves you from any "box model math". Keep in mind, if you add any side padding or border to the div itself, it will be added to the width you define to create the *total* width. You may also choose to remove the padding on the element in the div and place a second div within it with no width and the padding necessary for your design.
    .content {
        padding: 10px 0;
    /* ~~ The footer ~~ */
    .footer {
        padding: 10px 0;
        background-color: transparent;
        font-size: x-small;
        text-align: center;
    /* ~~ miscellaneous float/clear classes ~~ */
    .fltrt {  /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
        float: right;
        margin-left: 8px;
    .fltlft { /* this class can be used to float an element left in your page. The floated element must precede the element it should be next to on the page. */
        float: left;
        margin-right: 8px;
    .clearfloat { /* this class can be placed on a <br /> or empty div as the final element following the last floated div (within the #container) if the #footer is removed or taken out of the #container */
        clear:both;
        height:0;
        font-size: 1px;
        line-height: 0px;
    -->
    </style></head>
    <body>
    <div class="container">
      <div class="header"><a href="#"><img src="" alt="Insert Logo Here" name="Insert_logo" width="180" height="90" id="Insert_logo" style="background-color: #C6D580; display:block;" /></a>
        <!-- end .header --></div>
      <div class="content">
        <h1>Instructions</h1>
        <p>Be aware that the CSS for these layouts is heavily commented. If you do most of your work in Design view, have a peek at the code to get tips on working with the CSS for the fixed layouts. You can remove these comments before you launch your site. To learn more about the techniques used in these CSS Layouts, read this article at Adobe's Developer Center - <a href="http://www.adobe.com/go/adc_css_layouts">http://www.adobe.com/go/adc_css_layouts</a>.</p>
        <h2>Layout</h2>
        <p>Since this is a one-column layout, the .content is not floated. </p>
        <h3>Logo Replacement</h3>
        <p>An image placeholder was used in this layout in the .header where you'll likely want to place  a logo. It is recommended that you remove the placeholder and replace it with your own linked logo. </p>
        <p> Be aware that if you use the Property inspector to navigate to your logo image using the SRC field (instead of removing and replacing the placeholder), you should remove the inline background and display properties. These inline styles are only used to make the logo placeholder show up in browsers for demonstration purposes. </p>
        <p>To remove the inline styles, make sure your CSS Styles panel is set to Current. Select the image, and in the Properties pane of the CSS Styles panel, right click and delete the display and background properties. (Of course, you can always go directly into the code and delete the inline styles from the image or placeholder there.)</p>
      <!-- end .content --></div>
      <div class="footer">
        <p>© Moving Harmonies - Site Design by <a href="....">JRH Creative</a></p>
        <!-- end .footer --></div>
      <!-- end .container --></div>
    </body>
    </html>

  • I want to remove the header and footer when printing from my mac, i can do this in the Page Setup on my PC but not on the Mac. I can do it each time I print but then it resets. How do I make a universal change?

    I want to remove the header and footer when printing from my mac, I can do this in the Page Setup on my PC but not on the Mac. I can do it each time I print but then it resets. How do I make a universal change?
    == This happened ==
    Every time Firefox opened

    Go to the "File" menu, then "Print." The window that appears will have three drop-down menus at the top.
    The first is labeled "Printer",
    The second is "Presets".
    The third is unlabeled but has "Copies & Pages" selected by default.
    Click on that third menu and select "Firefox" near the bottom of the list.

  • How can I make a permanent change in the zoom level?

    I want to know how I can make a permanent change is the zoom level? I dont want to constantly have to change it from the default value of 100% every time I go to a different page. Thanks.

    Hello,
    You can also use the [https://addons.mozilla.org/en-US/firefox/addon/2592/ NoSquint] add-on to change the default zoom level for all websites at once. After setting your global zoom level, you can fine-tune the zoom on individual sites and set the options so that NoSquint remembers per-site settings.
    After installing NoSquint, go to the add-ons page to set the per-site settings:
    * Tools (or [[Image: New Fx Menu]]) > Add-ons > Extensions
    * Click the "Options" button by NoSquint

  • How can I make a global change so all controls and indicators labels on the front panel change to another colour?

    How can I make a global change so all controls and indicators labels on the front panel change to another colour?
    I need to change the front panel so that it can be used in a dark environment.

    Hi
    The only way I see, is to use the "Controls[]" property and iterate through all of them. But don't forget about nested elements (i.e. clusters, tab-controls, ...).
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...

  • How do you make it not so sensitivity. when turned off set down it comes back on or when working out shirt brushes ipod and it changes music

    how do you make it not so sensitivity. when turned off set down it comes back on or when working out shirt brushes ipod and it changes music

    You didn't say which model of iPod Nano that you have, but generally there should be a lock setting, that can be turned on or off, to prevent accidental changes in settings. And, there is also a setting to turn on or off a feature called, "Shake to Shuffle." It allows you to change songs by just shaking the iPod.

  • HT1296 how do i make sure the changes i make on my iphone over-ride my contacts in yahoo and outlook?

    how do i make sure the changes i make on my iphone over-ride my contacts in yahoo and outlook?

    You can turn iMessage off on your iPhone.  That's relatively easy.  Since iMessage is an Apple product/service, I have no idea how a Samsung phone will deal with an incoming one.  For that answer you should probably contact Samsung support.

  • I've never made a rescue email, how do I make one and change my security questions

    I've never made a rescue email, how do I make one and change my security questions

    Click here for information. If you can't reset them through the method described in that article, contact the iTunes Store staff via the link in the 'Additional Information' section.
    It isn't possible to create a rescue email address without correctly answering two of the questions. Nobody on these boards can reset them for you.
    (95613)

  • With Adobe Muse when I make a change I have a second Admin user how do we make sure these changes are not overridden

    With Adobe Muse when I make a change I have a second Admin user how do we make sure these changes are not overridden

    If you're both using Muse then it's no different than if you were both using PS, AI, Word, etc. You need to use a mechanism to enable you to both have access to the latest version of the .muse file (i.e. Creative Cloud Files folder, Dropbox, file server location, etc.).
    Changes made in the browser will sync back to the .muse file. Changes made in Muse are saved in the .muse file and if you're going to work on the site in Muse on two different machines then you need to have the up-to-date .muse file on the other machine.

  • How do I make the plugin run automatically when a photo is imported?

    I am trying to write a new plugin where the metadata will be automatically added to the photo when I import the photo in the Lightroom.
    How do I make the plugin run automatically when a photo is imported?
    Thanks for  your help!
    Regards,
    Prosenjit

    psaha84 wrote:
    What I want is, when I import a photo in Lightroom the plugin will run and assign the metadata.
    As John said, there is no mechanism to receive notification of import. The likely recourse is continuous polling (unless you get very creative..).
    You can try optimizing. e.g.: every second (or less), see if the count has changed, if it's gone up, something's been imported, if not then probably not (check anyway once in a while..).
    psaha84 wrote:
    How do I save the custom metadata with the image file?
    Lightroom 5 has the limitation, plugin  cannot link the custom metadata fields to XMP file or save them with image file.
    So, is there any alternative way to save the custom metadata?
    Yeah: Lightroom won't save custom metadata in xmp, nor read it if it's there, so you are pretty much on your own - you can save in a file, but if you save as non-standard sidecar Lr won't attend to it like it will jpg or xmp sidecar. For that reason it's often better to save in a separate dedicated location. You can save in image file itself, e.g. using exiftool if raw file, but that would make me nervous, and of course you'd have to have the logic to read it somewhere too..
    Good luck,
    Rob

  • How can I make my phone number active when viewing from a mobile device. My phone number is in my header in CSS

    How can I make my phone number active when viewing from a mobile device. My phone number is in my header in CSS

    See this support document http://support.apple.com/kb/HT5661

  • I have created a spreadsheet on numbers for ipad with a list of customers as a drop down menu. How can i make their address appear underneath when i select the customer?

    I have created a spreadsheet on numbers for ipad with a list of customers as a drop down menu. How can i make their address appear underneath when I select the customer?
    iselect the customer?

    Hi bazza,
    We won't be able to put the address from a formula into the same cell that you enter the customer's name. We can put the address in the cell under the customers name.
    First let's take James advice and concatenate the address in the address table.
    Here is the formula in G2
    =CONCATENATE(B2&"
    ",C2&"
    ",D2&"
    ",E2)
    It shows this way because after I clicked on B2 and typed [&"] (no brackets) I typed option-return
    This gives you your new line. Then I typed the closing ". I repeated this for the rest of the address.
    Next we want to bring this to your order sheet. I prefer using the two formulas OFFSET and MATCH instead of VLOOKUP.
    base tells OFFSETwhere to start counting from. Click A1.
    row-offset is for the row. we will use MATCH() -1 to give us the row.
    What MATCH does is give you the row number where something is found and you can specify an exact match. I usually construct the MATCH formula first and then cut and paste it into OFFSET. MATCH looks like this: MATCH(A2,Table 1::A,0). A2 is what we are looking for, Table 1A::A is where we are looking (the entire column A), and 0 means we want an exact match. Can you see it inside the OFFSET formula? Notice that we had to subtract 1 from its result.
    column-offset tells OFFSET which column A=0 so we want 6.
    we ignore "rows", "colomns" we don't need them.
    If this seems like too much, just break it down into small pieces.
    quinn

  • HT204380 How can I make the screen full screen when I am calling?

    How can I make the screen full screen when I am calling on Facetime on a Macbook Pro Laptop?

    Ok but if the iPhone 5s and 5 can go full screen the why can't the iPad Air as it too is new the problem shouldn't be hard to solve as I have looked the apple site and it show it just fine in full screen so I'm sure you understand when I say there is most definitely away of doing it so can Apple just sort it out I'm always telling my m8 how good Apple devices are and I've been let down on this so come on fix it PLEASE

  • How do I make the background of my photo black in Photoshop CS6?

    How do I make the background of my photo black in Photoshop CS6?

    Hello there-
    There are several ways to go about this. Without more specific description on the photo you are using, I have provided a few links:
    Using the quick selection tool:
    Magic Wand tool:
    Others:
    Please let us know of any other questions:
    Janelle

Maybe you are looking for

  • How do I copy a live runing system to a disk

    I have been using chakra-live on my laptop via a pen drive and I have it nicely configured using session saving but I get to a point where installing new packages won't work because a full upgrade is not practical (I get dependency issues). I have a

  • AutoFX Dreamsuite won't work with Photoshop CS3 in Windows 7 64 bit??

    I've obviously posted this question with Auto FX tech support, and am awaiting an answer.... however, wondered if anyone here is successfully using Auto FX "Dreamsuite Series" software as a Photoshop plugin in Windows 7... or Windows 7 64 bit OS? If

  • How to revert the plan copy done via CJ9F

    Hi Folks, Here is the scenario: No budgeting is used in PS ie. no budget profile is assigned to projects. Initially we are planning cost and revenue for the project and coping these plan value in version "02 : Project Baseline Budget" made for storin

  • Difference beetwen set handler and set_registered_events in SAP Enjoy...

    I'm reading now BC412 cours and I try to understand main difference beetween registering events for SAP enjoy controls using a) set handler b) set_registered_events Do ABAP service this events in other ways (I mean is ABAP service events registered v

  • G4 MDD Freezes when loading software and others

    I have a G4 MDD, Dual 1.25 Ghz 2mb L3 Cache per processor Not realizing the Mac had multiple drives as a RAID. I tried to install a newer system. It fried the drives. I replaced the drives with one 250GB ATA drive. I am getting odd freezes such as wh