Solved

CSS driving me NUTS!!!

Posted on 2014-09-16
1
86 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 500 total points
ID: 40326038
You need to give that div a height and width.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

When applying CSS to your HTML, there are many different ways to select which element(s) the CSS applies to.  Some of these selectors are more commonly known and used than others - Here are the more common ones: #X - Matches an ID of X .X - Matche…
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now