This content has been marked as final. Show 3 replies
I have no idea what it is you are asking. If you want the image in the
'mastkead' <div> to align right using css then use this:
<div id="masthead"><img src="assets/masthead.jpg"></div>
Steve Lawrie wrote:
> This should be easy and for some reason I'm missing it. This is a php page and
> it has a Fireworks navigation panel on the lefthand side but I'm removing all
> the extranuous stuff just to leave the div tags which are governed by a CSS
> Why doesn't it do it? And, is there a way of controlling it with CSS?
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> <title>Ultra Music</title>
> <link href="audience.css" rel="stylesheet" type="text/css">
> <div id="page">
> <div id="nav">
> <div id="masthead" align="right"><img src="assets/masthead.jpg"></div> <!--
> This is the offender -->
> <div id="content">
Ah..! that makes sense but for some reason the image is staying on the lefthand side. I would show you the link but it's a protected page and will ask you for a username and password.
No matter how where I put the "align right or center" value, it remains on the left.
The problem was in the CSS. I had padding set for the "content" div and nothing for the "nav" div. For some reason it was effecting the "nav" div. I have set padding for the "nav" div and taken the padding of the top of the "content" div, now the page presents properly.
Thanks for the help Osgood..!