Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

CSS driving me NUTS!!!

Posted on 2014-09-16
1
Medium Priority
?
108 Views
Last Modified: 2014-09-16
What is wrong with this html / css?

<!DOCTYPE html>

<html>
<head>
<title>Menu Test</title>
</head>
<body>
<div id="main" width="900">
      <div style="position: relative; float: right; background-image: url(blue_triag.jpg);">
      
      </div>
</div>      


</body>
</html>

The image is attached. It is in the SAME folder with the html.

I get a blank page. http://rkassoc.org/Davis/menu/menu_test.htm
blue-triag.jpg
0
Comment
Question by:Richard Korts
1 Comment
 
LVL 38

Accepted Solution

by:
Tom Beck earned 2000 total points
ID: 40326038
You need to give that div a height and width.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
This article discusses four methods for overlaying images in a container on a web page
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question