Solved

CSS driving me NUTS!!!

Posted on 2014-09-16
1
97 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Border and image sizing 5 29
Change of column alignment in div 2 23
Google Page Speed Insight with srcset 4 88
2 separate CSS animations 2 17
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 …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

829 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