Joined: Jun 2006 Posts: 8238 Location: twitch.tv/AFKidsGaming
Hey Guys,
I'm working on a project using HTML, it's very basic HTML, and i've pretty much finished, but im stuck on one bloody thing.
So, basics:
I have 1 big Background Image. 512 by 1000 Over that background, i'm placing 2 Smaller images that will have hyperlinks. At the bottom, i have a Youtube embed.
Now, so far everything is working fine. The only problem is, that when i place the Smaller image with the hyperlink in, the "click-able area" goes from the top left corner of the background, to the bottom right corner of the little image.
I need to know how to make the "click-able" area only the small image.
This is the code i currently have written, to keep it more simple i've taken out the 2nd image, and just using the top image till if find out how to make the correct "click-able" area.
Spoiler!
Code:
<div style="width:515px; height:1000px; padding:0px; margin:0px auto; font-family:'Times New Roman', Times, serif; font-size:14px; color:#b4c0c3; text-align:left; background: url(http://img269.imageshack.us/img269/4802/fyesplashbrand.png) no-repeat left top">
I would have to be able to see the page on my browser and view the source from that.
I find it hard to understand from just words.
But one thing you do need to learn to do is seperate your HTML and CSS files. Putting styling in the same file as your HTML is very bad practice and makes everything a lot harder to work with.
everything in yellow goes in CSS file. another issue is that you're using "background" as your content. if you're still planning on using images to completely compose your content then splice it up in photoshop or something.
Oh, if for some reason you're inclined to not want to use another div for the image, just replace padding with the word margin, margin is outside the object, padding is inside, when you pad the bounding box gets bigger, when you use margin the bounding box moves. Actually, every time you've used padding, you probably mean margin.
Joined: Jun 2006 Posts: 8238 Location: twitch.tv/AFKidsGaming
Thank you guys so much, it was honestly killing me.
Seriously appreciate the help.
And i just used the iFrame only because that's what is provided by youtube, im definitely not a master, not even a "Novice" at HTML coding, i just know how to use it slightly, and be able to do things, so honestly its appreciated.
Thank you guys so much, it was honestly killing me.
Seriously appreciate the help.
And i just used the iFrame only because that's what is provided by youtube, im definitely not a master, not even a "Novice" at HTML coding, i just know how to use it slightly, and be able to do things, so honestly its appreciated.
I hardly do either, but for some reason we have like 1 class that teaches it(non-required) and like 3 required that focus on Java.. wtf. They assume if your going to school for that, you taught yourself.. Why the hell do you think I'm going to school? Certainly not to learn something I already know.
Users browsing this forum: No registered users and 48 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum