You are here: Re: z-index? Wrapping text and positioning « HTML « IT news, forums, messages
Re: z-index? Wrapping text and positioning

Posted by John Hosking on 03/28/07 23:44

zac.gorak@gmail.com wrote:

<10KB of totally extraneous code snipped>

> http://twodayslate.com/test/test.php
> You can probably get the idea of what I want to do by just looking at
> the site and the two images on the site.

Yes, excellent; that's all you had to provide.

> I am having a hard time
> positioning the logo and nav. (This is were z-index might come in
> hand?)

No, probably just an absolutely positioned element (although I admit to
being unsure; I wanted to use a float, but couldn't get it to work for
me right away). I inserted an element here

<div id="contentcontainer">

<div id="sidebar"><p>Here is the desired sidebar. It is neither
"greeked" nor "latined", nor have I tried using Klingon....</p></div>

<div id="content">Background color for content: white...

with some CSS:

#sidebar {background-color:#0066AA; color:#FFFFFF; width:10em;
padding:1em; position:absolute; top:2em; right:-2em; }
with
#content {...; right:10em; ...}

That got me something like your "over 800px" picture, but the content
doesn't wrap around the sidebar, and it doesn't change when the browser
gets narrower.

I do not know of any way to get two such completely different placements
to reliably result from resizing the browser (without using JavaScript).
There may be some slick trick (like setting some minimal width so that a
conflict causes the sidebar element to move down to clear another), but
it exceeds my time/interest/capability right now. Even still, I think
you'd me hard-pressed to get the seconday arrangement you want for under
800px. So sorry.

--
John

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация