Making circle border around a div

Just a second ago I was finally able to turn a square div in a circle.  I been working on trying to achieve that for the last month.  The problem was that after I finished making my circle div I couldnt move the darn thing anymore.  I am trying to make round navigation buttons.  so anyway. I tried getting another page going and try that again without class this time since it seems I could not move teh divs as long as they were tied up to a class.  so I got all my button in the right place now but now I can't make them to go round anymore.... haaaaaaaaaaaaaaaaaaaaaa....... this program is driving me insane.  I am going to start crying soon lol

Since divs are rectangular or square, you're trying to do something that is not what HTML is designed to do.
CSS for circles:
.circleBase {
    -webkit-border-radius: 999px;
    -moz-border-radius: 999px;
    border-radius: 999px;
    behavior: url(PIE.htc);
.type1 {
    width: 100px;
    height: 100px;
    background: yellow;
    border: 3px solid red
.type2 {
    width: 50px;
    height: 50px;
    background: #ccc;
    border: 3px solid #000
.type3 {
    width: 500px;
    height: 500px;
    background: aqua;
    border: 30px solid blue
HTML:
<div class="circleBase type1"></div>
<div class="circleBase type2"></div><div class="circleBase type2"></div>
<div class="circleBase type3"></div>

Similar Messages

  • Unwanted white border around a div

    I placed a div that I am using for a background. Before I add an image I am testing it out by giving it a blue background. I have the width and height set to 100% and left to 0px and top to 0px. When I test it in a browser (IE 8) or view it in Design view it has a white border around it. There is no border setting or margin setting. Is there some preference setting in Dreamweaver that makes this aproximately 10px border? If so how do I get rid of it?

    Thank you both - that helped to clear up some of the issues but others remain. I'm assuming I can keep the dialogue going but will start a new thread if that is required.
    I uploaded the page and css files to my server. The page file is http://www.wlvs.com/untitled-1.html and the css file is http://www.wlvs.com/test.css  I ame using these file to try out styles. The background div (backgnd) will ultimately be an image but for now I'm just using a color. The "wraper" has an image that I gave a padding to at the top and bottom and for some reason it is showing a dark blue color. - I thought it would allow the background color to show through - shouldn't it??
    The other issue is centering the logo in the "header". I suppose I could use <center> but I am trying to figure out what is the css code for doing it. Nothing seems to work. I was able to center the "wraper" image but could not do the logo.
    Any help would be much appreciated...

  • How to get rid of white border around Container Div (main box)?

    I have look and look for a solution but couldn't find one. I'm developing a website but the main issue is the white (I changed it black so you can see what I'm talking about)  border around the website when i go to preview it from DW to Google Chrome or Internet Explorer.
    I've tried everything! from setting body margins all to zero but nothing works... can anyone help me?!

    No that's not what I'm talking about, the black div bot on the top is what i put, I put the entire style.css code in my last post, I'm talking about the white border on the right inside the scroll bar.
    let me explain from the bottom, let say I don't put Margin: 0 under Body  in my style.css . I get a white (I made it Green to show you better) border around my entire webpage looking like this:
    so this made me curios because I wanted to know why it gave me this border without putting Margin: 0 under Body in my Style.css sheet. so i went to inspect element inside Google Chrome and saw this:
    I was shocked because it automatically added 8 px in Margin around the body. So I took all the advice i was given in this thread and put the Margin: 0 ; under Body in my Style.css Sheet and it did this:
    for Some reason it says Margin 0 in the inspect element under body but put a default white border there to the right....
    I have explained this the best way possible. PLEASE CAN ANYONE HELP ME?!
    ps. its doing this for all browsers so i know it not a chrome issue!

  • Border around container div

    I have a veeerrrrrryyyy rough design going so please bear
    with that... (i know it needs lots of graphic tweaking)
    I am trying to put a thin dotted border #6600FF around the
    container div and can't seem to make it work. Any ideas? (DW8)
    http://www.nsbcustomjewelry.com/DIVTEST.shtml
    Thanks!

    #container {
    border:2px dotted #60F;
    }

  • How to add white border around my Banner?

    Hello,
    I am trying to add a small border around my banner.
    I tried to code it in but it didnt seem to work. Not sure why?
    So i added just without the border.
    Any thoughts?
    Thank you!
    Ivan
    Here is the URL - http://www.the-electronic-cigarette.net

    Your header is defined as an id in style.css
    So, in your CSS:
    #branding {
              background: #ffffff url(images/sky.png) top left repeat-x;
              margin-bottom: -20px;
    Change to:
    #branding {
              border-color: fff;
      border-width: 3px;
              margin-bottom: -20px;
    That will create a 3 pixel border around the div.

  • I am making a graduation video for my cousin using Final Cut Pro. I have photos layered over videos, and I was wanted to find out how you can add a border around the photos so they stand off of the video. Anyone know what I could do?

    I am making a graduation video for my cousin using Final Cut Pro. I have photos layered over videos, and I was wanted to find out how you can add a border around the photos so they stand off of the video. Anyone know what I could do?

    You would need an image editor to edit the images and add a border to the image first before importing them into Final Cut.
    Cheapest and very good image editor?
    PIxelmator.
    Located in the Mac App Store. $14.99 USD.
    Here is the Pixelmator website to give you an overview of the app.
    http://www.pixelmator.com/
    Good Luck!

  • Unwanted thin border around DIV

    So I have two pages (not online yet) in a site I am builing.
    They both have an arrow rollover (about 60x40px made in PS), The
    first one is fine and the arrows sits on the background seemlessly.
    I used the same master file, but changed the arrow color. Made
    another page but on this page I can see a thin white border around
    the 40x60 box the arrow sits in . The border bvalue is set to 0. It
    sits on black. I tried no BG color, and Black BG color and neither
    made a differnce. I am really stumped. What causes a thin white
    outline around and object/DIV like this?

    The image itself probably has the border in it. Remake the
    image and be
    careful when you export it to make sure there is no border.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "iptinak" <[email protected]> wrote in
    message
    news:gckfrn$ou7$[email protected]..
    > okay, it is something about how the image is saved. I
    took the new arrow
    > out
    > and inserted the old one to the same page. No border.
    They are both JPGS.
    > I
    > realize now that when I made the first one I never saved
    saved the PS
    > original
    > files. I opened the JPG and over laid on top to redo it.
    I must have saved
    > it
    > differently but I don;t see any differences. What am I
    missing here?
    >

  • Firefox wont put border around image

    Hi
    Ive created a intro page for my new blog
    www.saltalamacchia.co.uk
    The problem I am having is that in firefox it isnt putting
    the containers border around the image.
    All's fine in IE. I can get arount it by putting a footer div
    in and making the image its background.
    However thats not the way I want to do it.
    Any ideas as to how I can correct this for firefox. ie an
    image in a container while still maintaining the containers border
    Thanks in advance
    Carlo

    Should work: wrap everying (content and footer) inside an
    outer wrapper div
    and place a border on that instead.
    Nadia
    Adobe® Community Expert : Dreamweaver
    CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    ~ Customisation Service Available ~
    http://www.csstemplates.com.au
    CSS Tutorials for Dreamweaver
    http://www.adobe.com/devnet/dreamweaver/css.html
    "Softpages" <[email protected]> wrote in
    message
    news:esfh01$dln$[email protected]..
    > Hi
    > Ive created a intro page for my new blog
    > www.saltalamacchia.co.uk
    > The problem I am having is that in firefox it isnt
    putting the containers
    > border around the image.
    > All's fine in IE. I can get arount it by putting a
    footer div in and
    > making
    > the image its background.
    > However thats not the way I want to do it.
    >
    > Any ideas as to how I can correct this for firefox. ie
    an image in a
    > container while still maintaining the containers border
    > Thanks in advance
    > Carlo
    >

  • How can I create a white border around figures that are in an image? (CS 6; examples+image included)

    Hi,
    I have CS6 and am wondering how to create a white ("comic style"?) border around figures in an image, as in the examples below. I don't wish to include the black shadow of the border, just the white part.
    Examples:
    Here's the image I'd like to alter, making a white border around the outline of all five figures:
    I researched for quite a while but could find no instructions. It would be very much appreciated if someone knows and would be kind enough to share the technique! Thank you.

    If you make the image a layer (opposed to Background)...
    You could Select the blue with the Magic Wand as Semaphoric says, then fill with white.  Then choose Select - Modify Selection - Contract, and mask or delete the remaining pixels.  The Contract operation will give you a nice border the size you choose.
    For extra credit, you could use Refine Edge to make the selection more accurate.
    Click to see the image  against a dark background.
    -Noel

  • How to make a round border around my picture?

    I am trying to design a logo that would fit into the center of a Frisbie, yet I cannot figure out how to make a round border around the picture. I have tried using the eliptical tool, and have also tried using the cookie cutter. The only option I can get to work with the eliptical tool, is the feather, yet I can't change the pixel number for some reason, so it just makes a thin circle around the picture. I thought I could cut and paste it, but the copy and cut options were grayed out and didn't work. When I used the cookie cutter, it made a nice border, and I pasted the picture into it, but, there are four sections that need to be filled in with the background color and the paintbucket didn't work in those spaces (they are the gray and white checked areas. (the picture ends up looking like a rectangle inside of a circle). So I made a new blank file and filled it in with the color of the picture's background, hoping to use the cookie cutter tool around the picture that was now pasted into the new blank file (I chose another color for the round border) and I used the cookie cutter around the picture, but when it was finished, the whole picture ended up being white. All I want to do is to make a border around a picture (a round border). Nothing I have done has worked though. What am I doing wrong, or what are some other options for trying to do this? Thanks.

    Here is a simple way to add a border. Select the item, add a blank layer, choose the border size and color and the Outside option:
    Here is the result:
    Note that you don't even need to do the Stroke on a blank layer. You can Stroke directly on the picture layer. However having the blank layer preserves the picture in case you want to start again with different Stroke options.
    If this is not what you are looking to do, please clarify.

  • I can't get rid of this blue border around my artwork after it's published to the web

    I can't get rid of this blue border around my artwork after it's published to the web

    That did not work.
    Here's where I put it. The blue bordeer still show up around the large rectangular image.
    <!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>Ray Bros., Inc.</title>
    <style type="text/css">
    @import url("PopupMenuC.css");
    @import url("PopupMenuB.css");
    @import url("PopupMenu1.css");
    body {
              margin-left: 00px;
              margin-top: 00px;
              margin-right: 00px;
              margin-bottom: 00px;
              text-align: center;
    a img {border:none}
    .Arial {
              font-family: Arial, Helvetica, sans-serif;
    .Arial {
              font-size: 10px;
    .Arial {
              font-size: 12px;
    .Arial .Arial {
              font-size: 14px;
    </style>
    <script language="JavaScript1.2" type="text/javascript" src="mm_css_menu.js"></script>
    </head>
    <body>
    <table width="1080" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="279" align="center" valign="top"><div id="FWTableContainer1818523225"> <img name="PopupMenuC" src="PopupMenuC.jpg" width="1082" height="279" id="PopupMenuC" usemap="#m_PopupMenuC" alt="" />
          <map name="m_PopupMenuC" id="m_PopupMenuC">
            <area shape="rect" coords="899,240,1064,265" href="index-new.html" alt="" />
            <area shape="rect" coords="679,240,844,265" href="index-new.html" alt="" />
            <area shape="rect" coords="460,240,625,265" href="javascript:;" alt="" onmouseout="MM_menuStartTimeout(1000);"  onmouseover="MM_menuShowMenu('MMMenuContainer0525123758_0', 'MMMenu0525123758_0',485,265,'PopupMenuC');"  />
            <area shape="rect" coords="241,240,406,265" href="javascript:;" alt="" onmouseout="MM_menuStartTimeout(1000);"  onmouseover="MM_menuShowMenu('MMMenuContainer0524224504_0', 'MMMenu0524224504_0',262,265,'PopupMenuC');"  />
            <area shape="rect" coords="22,240,187,265" href="javascript:;" alt="" onmouseout="MM_menuStartTimeout(1000);"  onmouseover="MM_menuShowMenu('MMMenuContainer0524221503_1', 'MMMenu0524221503_1',46,265,'PopupMenuC');"  />
          </map>
          <div id="MMMenuContainer0525123758_0">
            <div id="MMMenu0525123758_0" onmouseout="MM_menuStartTimeout(1000);" onmouseover="MM_menuResetTimeout();"> <a href="index-new.html" id="MMMenu0525123758_0_Item_0" class="MMMIFVStyleMMMenu0525123758_0" onmouseover="MM_menuOverMenuItem('MMMenu0525123758_0');"> RBI-NS100 </a> <a href="index-new.html" id="MMMenu0525123758_0_Item_1" class="MMMIVStyleMMMenu0525123758_0" onmouseover="MM_menuOverMenuItem('MMMenu0525123758_0');"> RBI-M100 </a> <a href="index-new.html" id="MMMenu0525123758_0_Item_2" class="MMMIVStyleMMMenu0525123758_0" onmouseover="MM_menuOverMenuItem('MMMenu0525123758_0');"> RBI-100 </a> <a href="index-new.html" id="MMMenu0525123758_0_Item_3" class="MMMIVStyleMMMenu0525123758_0" onmouseover="MM_menuOverMenuItem('MMMenu0525123758_0');"> Color Charts </a> </div>
          </div>
          <div id="MMMenuContainer0524224504_0">
            <div id="MMMenu0524224504_0" onmouseout="MM_menuStartTimeout(1000);" onmouseover="MM_menuResetTimeout();"> <a href="index-new.html" id="MMMenu0524224504_0_Item_0" class="MMMIFVStyleMMMenu0524224504_0" onmouseover="MM_menuOverMenuItem('MMMenu0524224504_0');"> RBI-5V </a> <a href="index-new.html" id="MMMenu0524224504_0_Item_1" class="MMMIVStyleMMMenu0524224504_0" onmouseover="MM_menuOverMenuItem('MMMenu0524224504_0');"> RBI Low Profile AGG </a> <a href="index-new.html" id="MMMenu0524224504_0_Item_2" class="MMMIVStyleMMMenu0524224504_0" onmouseover="MM_menuOverMenuItem('MMMenu0524224504_0');"> Color Charts </a> </div>
          </div>
          <div id="MMMenuContainer0524221503_1">
            <div id="MMMenu0524221503_1" onmouseout="MM_menuStartTimeout(1000);" onmouseover="MM_menuResetTimeout();"> <a href="index-new.html" id="MMMenu0524221503_1_Item_0" class="MMMIFVStyleMMMenu0524221503_1" onmouseover="MM_menuOverMenuItem('MMMenu0524221503_1');"> RBI-MT240 </a> <a href="index-new.html" id="MMMenu0524221503_1_Item_1" class="MMMIVStyleMMMenu0524221503_1" onmouseover="MM_menuOverMenuItem('MMMenu0524221503_1');"> RBI-200 </a> <a href="index-new.html" id="MMMenu0524221503_1_Item_2" class="MMMIVStyleMMMenu0524221503_1" onmouseover="MM_menuOverMenuItem('MMMenu0524221503_1');"> RBI-175 </a> <a href="index-new.html" id="MMMenu0524221503_1_Item_3" class="MMMIVStyleMMMenu0524221503_1" onmouseover="MM_menuOverMenuItem('MMMenu0524221503_1');"> R-Panel </a> <a href="index-new.html" id="MMMenu0524221503_1_Item_4" class="MMMIVStyleMMMenu0524221503_1" onmouseover="MM_menuOverMenuItem('MMMenu0524221503_1');"> Color Charts </a> </div>
          </div>
        </div></td>
      </tr>
      <tr>
        <td valign="top"><p><br />
        </p></td>
      </tr>
      <tr>
        <td> </td>
      </tr>
      <tr>
        <td> </td>
      </tr>
      <tr>
        <td>...</td>
      </tr>
      <tr>
        <td> </td>
      </tr>
    </table>
    </body>
    </html>

  • White border around images in Easy Rotator

    I would like for there to be a small white border around my images when i put them into easy rotator.  I really just want there to be about a 5 px space around them that is really just the background.  I cant seem to find the right place in the code to make the div that holds the background color... which is white...to make it have like a 5 px padding..
    or even make a 5 px margin around all images.
    I even tried to place the border around my images when placing them in the rotator but the top still pushed all the way up and there was only the white space on the left right and obviously the bottom where the dots are that shows which number slide I am on.
    Where in the code will I find this so I can manipulate it... thanks again for always helping
    avery

    Without a link, it's all guesswork. 
    Use Chrome or Firefox to preview your page.  Right Click and select Inspect Elements.  This should give you some idea of which CSS selectors are used by Easy Rotator.
    Nancy O.

  • Getting rid of white border around photos when using iphoto to iweb

    Hi there,
    Am creating web pages in iweb and importing photos from iphoto. Can anyone tell me how to get rid of the white border around my photos (image frame)? Hoping to enhance some of the templates with my own images. I also have photoshop elements and have been having the same problem there. Sure appreciate. Kim Strouble

    Welcome to the Apple Discussions. The link to the site is broken. There is a fix for some of the strange goings on since the MobileMe conversion. See Wyodor's post in this thread: http://discussions.apple.com/thread.jspa?threadID=1605665&tstart=0. After applying the fix to iWeb I found I might have to republish a second time, occasionally a third and make sure I cleared my browser's cache.
    If you're using Firefox 3 that's a different solution that can be found here: http://discussions.apple.com/message.jspa?messageID=7486799#7486799
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    Note: There now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • Dynamic Border around image

    hi there,
    i have a main flash movie (main.fla) which has images placed
    on the screen.
    Each image has an invisible button placed on it.. (ie: the
    button has only
    the hitarea defined and no rollover, down etc.)
    NOTE: that the images are different in sizes. hence they have
    different
    width and height.
    I tried making a movieclip of 200 x 200 in size with a 1px
    border around it
    and dynamically making it adjust to the width and height of
    the images. BUT
    i seem to be hacing the following problem-
    1) for images that are larger in size than the border
    movieclip.. the border
    tends to thicken.
    2) for images that are smaller than the border movieclip..
    the border tends
    to get more thinner
    Required-
    OnRollover of an image.. it should have a border around it,
    inorder to
    highlite the selected image. Lets say, a 1px border and red
    in color. How do
    i achieve this?
    Would really appreciate if someone would provide a simple
    code to achieve
    this as i am not used to programming.
    Please help..
    thanx

    yep, thats cause when you stretch your mc the lines will
    stretch with it.
    if you are using flash 8, use the 9slice guides.
    for the mc that contains your border go into the preferances,
    and you will find a check box for the 9slice thingy (technical
    term)
    check that, then double click on the library symbel to edit
    it.
    you will find flash has drawn four dashed lines.
    move these so that they mark the inward edge of your borders.
    basically the area inside these guides stretches normally
    the corners don't stretch
    and the edges stretch either horizonally or vertically
    for more info look in the help.
    oh, and don't transform (rotate skew etc) your mc once on the
    stage or you'll loose your slices...
    best

  • Red Border Around Image

    Hi,
    In Photoshop CS3 I'm creating a 5 x5  pixel image in a green color. On my canvas it shows it completely green. I then emboss it. Before and after I emboss it I look at the navigator window and I see this red border around the green image. After I save it as a PSD file and then bring it into Dreamweaver, I can see the red border when viewing in IE. I tried making the background and foreground green but still a red border. Am I missing something?
    Thanks
    Steve

    You're confusing some things...
    The red rectangle in the Navigator window has nothing to do with the content of your image.  It shows you what part of your image you're looking at in the main window.
    If you're saving your file an seeing the red border in the image, you have somehow saved the red color in the image, or the way you're using the image has put a border around it.  For example, put in a web page a certain way a browser might put a border around the image to indicate that it's a link.  I'm not familiar with DreamWeaver, but I suspect from what you're describing the red isn't really in the image.
    Do you see the red in the image when you use an image viewer to view the file from within your folder?
    Please post the image here (use the little camera icon just above where you type) and we'll let you know if we see any red.
    -Noel

Maybe you are looking for