Hey there! I made an image in photoshop and sliced it up. I then took it to dreamweaver and replaced all the images with dropbox links. In the preview it looks perfect, but when I put it on twitch well...look for yourself:
http://www.twitch.tv/xsnook
Ok I tried putting a few dropbox "share" links into the code. Now I can't see some of the stuff on my twitch page (I didn't replace all of the links yet because it doesn't seem to be working).
Fire I can't thank you enough for that, however, how the info on my page will now appear to you is why I opened this thread. There are spaces in between many of the slices. I don't know what that's about
Ah, I see your bug... Tables don't exactly work as expected in longbios, all rows need to be the same height for them to work correctly. It's better to use a master div with the backgrounf set as an image and position child elements inside that with padding and such.
I made the Background and the 6 different buttons...I can't seem to put the buttons on top of the background image in Dreamweaver, they just go off to a side. I've tried Googling a few different ways to do this, but it keeps coming up with articles on "slices," which as we figured out aren't working too well for my particular image. I wouldn't mind learning this in depth from a tutorial but I can't find one haha.
standard positioning of any kind is out, thus the use of padding to get a similar effect
@biotest that's exactly what you're doing, that's what I meant by "It's better to use a master div with the background set as an image and position child elements inside that with padding and such."
Haha! Well...For now I'm just gonna throw up the buttons, but if anyone knows an easy way I can put the buttons on top of my background image I'll give it a try.
oh...my god...fire you are the man! first I tried it on just the images and I didn't get anything so I plunked it on to the "spacers" and bam it's perfect now! You're the best man. Also, Biotest thanks for what you said that was gonna be my next option if the first didn't work.
Something I completely forgot about really. Floating causes element flow to change, making it act more like an inline display style than a block display style. It occurred to me looking at another thread that adding a float is exactly what I had to do in one of the early versions of Siglemic's longbio many many moons ago, due to the same problem.
Still wish I could do hotspots so I could outline the shape of the button, but hey this seems to be working just as well, just takes a bit longer. Thanks for all the help!
Comments
is you dropbox account set to private or something? when i paste one of your image links into my browser i get
Error (403)
It seems you don't belong here! You should probably sign in. Check out our Help Center and forums for help, or head back to home.do it as @fire said, Set the whole unsliced image as your background then use padding to position your link images.
<div style="background-image:url(linktoimage.jpg); width:620px; height:???px;">
<div style="padding-top:???px; padding-left:???px;">
<a href="http://www.facebook.com"><img src="linktofacebookimage"></a>
</div>
</div>
just change the ??? to whatever number you need.
And before anyone moans at me YES i know you can add the style to the img tag :P