Jump to content

margin-top inside nested div's not working right. moving everything!! ??


mindspin311

Recommended Posts

I don't know why this isn't working. The left margin works just for the text without moving the background graphic, but the top margin moves both the text and graphic. It doesn't work in firefox, but does in IE. Any ideas?

 


<html><head>
<style type="text/css">

.menu_top
{
  background: url("images/link_box_top.gif") no-repeat;
  width: 192px;
  height: 37px
}

.font_title {
  color: #BEC7C7;
  font-family: times;
  font-size: 18;
  margin-left: 20px;
  margin-top: 20px
}

</style>
<title> test </title>
</head>

<body>

<div class="menu_top"><div class="font_title">
PROJECTS<br />
</div></div>
...
...
...

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.