Jump to content
Sign in to follow this  
washingtonirvine

Css3 Circles

Recommended Posts

Hi iv been making some circles with css3 and i was wondering if there is a way to center text right through the middle. iv been using the obvious like margin and position but no such luck unless im doing it wrong. also while im here can i have a background image with just the standard image command?

Share this post


Link to post
Share on other sites

Let's start with your background-image question:Yes, it is possible, but I don't reccomend using it.It only allows you to stretch the image to 100% width and 100% height, but that does make your image look terrible.If you still want to do it that way, here's how (someone please correct me if I'm wrong):

<img src="background.png" width="100%" height="100%" border="0" style="z-index: -999999;" />

I'm not sure how to do the align thing correctly, but I'd just use padding or margin (and text-align, ofcourse).

Share this post


Link to post
Share on other sites
Hi iv been making some circles with css3 and i was wondering if there is a way to center text right through the middle. iv been using the obvious like margin and position but no such luck unless im doing it wrong. also while im here can i have a background image with just the standard image command?
Are those circle modifiers supported on the major browsers? I have never heard of them.

Share this post


Link to post
Share on other sites

Assuming he is making the circles using border-radius, only Gecko (Firefox) and Webkit appear to have support at the moment[1].

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...