Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Specific example of image floated over UL

Status
Not open for further replies.

thedaver

IS-IT--Management
Jul 12, 2001
2,741
US
I have a heavily formatted UL (via CSS) and am having trouble getting an image to float in the upper right of the DIV container for the UL.

Anybody have a link to a tutorial? I'm starting at a semi-basic level but trying to work with existing, advanced CSS code.

Thanks!
Dave.

D.E.R. Management - IT Project Management Consulting
 
I'm not sure I understand the question. Are you just looking to fix position on a background image?
 
Most kind of you to offer to spot check the page itself!


The problematic image is the FireFox 300x250 image. I want it floated, "relative" upper right... It's in roughly the correct position now. Problem is that the UL is being pushed "under" the box, instead of wrapping around it. Not working this as a background image.

Sorry for the ambiguity in my question, was trying not to be specific to my site... THANKS!

Dave.

ps. There's a little bit of trial-and-error garbage in my css/layout.css so please be kind.

D.E.R. Management - IT Project Management Consulting
 
If you give your "items" div a position of "relative", then you can absolutely-position your "floatboxright" span at top:0 and right:0. Then you no longer need to float it.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
I'm obviously working with the specific theme from Gregarius... it's making me nuts... I added the following "position: relative;" entries to css/layout.css and doesn't seem to change on FFox

Code:
div#items {
  position: relative;
}

----skip down-----

/** the main divs (nav, side, content, footer, ...) inherit this class */
div.frame {
 padding: 15px;
 position: relative;
}

D.E.R. Management - IT Project Management Consulting
 
And yes, I want the UL to wrap around the image...
Worst case, I'd go with the image overlaid via z-index... thoughts?

D.E.R. Management - IT Project Management Consulting
 
How come I can't see this image on the link you provided? I know you were looking for general advice on how to do that, but most of the times the solution would have to be worked out specifically for your problem. General advice is to just float the image without any positioning (on any elements in question). That should make the list float around the image.

___________________________________________________________
[small]Do something about world cancer today: Comprehensive cancer control information at PACT[/small]
 
Vragabond,
Thanks for checking... the URL has been backedout to a previous version... it's a little broken now too.

I'm going to try another theme/approach and see if I can get the site to look the way I want.

Thanks for everyone's comments!

D.E.R. Management - IT Project Management Consulting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top