View Full Version : Snap Layers Help!
Firehorse
05-06-2007, 03:05 PM
I am making a website and I need to use layers to hold text infront of an image but in different sized browsers they don't stay where I want them to. It also happens when the browser is not maximised on my laptop. It isn't just the browser I'm using it's also like this in FireFox.
I need to know how to get a layer to stay still/snap it to the image I put it infront of.
Please could you help! +rep
Moved by opensourcehost (Forum Moderator) from Web Designing: Please post in the correct forum next time, thanks http://habboxforum.com/images/smilies/smile.gif.
Sygon..
05-06-2007, 03:37 PM
<div style='width: (enter number here of image width); height: (ditto but for height); background: url(url here);">
text</div>
Firehorse
05-06-2007, 04:38 PM
That doesn't work, all that is is a simple div with a background image, your html skills are also not really that good "/
I have a layer and I want to be able to anchor it down! I don't know why opensourcehost moved this thread to coding as it isn't a code I need. I think it's some kind of tool in dreamweaver that I need to find but can't!
redtom
05-06-2007, 04:56 PM
your html skills are also not really that good
Lol anyways...
Could you use a div with position:absolute;?
Firehorse
05-06-2007, 05:04 PM
I really have no idea, all i know is that it moves to be in that position on the screen no matter what sreen size you have or if you minimize it "/ I'm using a 19" widescreen (or I think I am, it's a pretty big screen for a laptop and it's most certainly wide) and on all the computers in my school which are mostly 14" it comes up all wrong, here's my not very well coded layout: click here (http://www.dansdiscos.co.uk/lightning-host)
YouFail
05-06-2007, 07:39 PM
Here's an idea: learn how to ******* code.
Recursion
05-06-2007, 07:41 PM
Oh dear... Sygon is one of the best coders around on HxF. That DIV is good, as you can write in it, but still have the image, thats how to properley code :|
Firehorse
06-06-2007, 04:40 PM
off topic: Jaffa Cakes what has gotten into you :S you have a girly Avatar!!!
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.