Jump to content

hello newbie


mindapolis

Recommended Posts

Hi, I'm doing a website in HTML5 for the first time. Most of the concepts are easy but I'm having trouble understanding how to get a oval on the page. I understand the CSS behind it but how do you get the shape on the page? Do you have to use the canvas to draw it?

 

You can use an image, you can draw it on a canvas, you can draw it in SVG and you can draw it in VML. You can even do it purely in CSS, though it's quite a bulky process. It really depends on what you are trying to do.

Link to comment
Share on other sites

  • 4 weeks later...
  • 2 weeks later...

If you go into a image editing program such as photoshop, fireworks, expression design or even paint and draw an oval. Then save it into a folder called images with a name as "oval.jpg"

 

then if your webpage should look something like this this:

 

<html>
<head>
</head>
<body>
<div style="background-image:url('/images/oval.jpg')"></div>
</body>
</html>

 

or even:

<html>
<head>
</head>
<body>
<div"><img src="/images/oval.jpg" alt="oval"/> </div>
</body>
</html>

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.