[CSS] Flash object not aligning right
Today I created a menu for a new web design that Im going to try. The menu was made in Ultimate Paint, then imported to flash for motion. Well, I'm wanting this menu in a certain position on my webpage.
Here is how I want it connected to the top:
View Here
Code:
<style type="text/css">
div {
border: 0 px;
position: absolute;
top: 0;
}
</style>
Here is how I want it centered:
View Here
Code:
<style type="text/css">
div {
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body bgcolor="#000000"><div align="center">
....
I have tried to combine both of these but still haven't been able to make it to where both the top and center attributes work. Any reason why this might not be working out? Is there some easy solution to this all? Thanks! =)
Re: [CSS] Flash object not aligning right
try this:
Code:
<style type="text/css">
div {
border: 0 px;
position: relative;
margin-top: -10px;
}
</style>
I've just used -10 as an example, you'll probably need to change it a bit.
Re: [CSS] Flash object not aligning right
Quote:
Originally Posted by
Pieman
try this:
Code:
<style type="text/css">
div {
border: 0 px;
position: relative;
margin-top: -10px;
}
</style>
I've just used -10 as an example, you'll probably need to change it a bit.
Hey, that works great (-8 fits it perfectly)! Thank you much! :thumbs-up
Re: [CSS] Flash object not aligning right