Solved

CSS driving me NUTS!!!

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
jQuery detect if it is a mobile device 3 185
Refresh div via ajax without lost ccs <li> styles 8 31
Border and image sizing 5 19
flex div overflows its container 4 20
Creating a CSS block that only applies to printing By default, all of your CSS applies to every possible view of your page - whether on screen, printed, landscape, touch-screen, or whatever.  You can, however, add CSS that only applies under certai…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
In this Micro Tutorial users will learn how to embed custom fonts into websites using @font-face in CSS Select a font: Ensure the EULA allows you to use @font-face: Download the font: Get the browser-compatible files you need: Edit your CSS       - Name …
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …

785 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