Jump to content

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


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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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