Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Can I get a bit of code for this please?
Old 02-12-2009, 10:15 AM Can I get a bit of code for this please?
PBScott's Avatar
Extreme Talker

Posts: 160
Name: Scott
Location: Canada
Trades: 1
Hi there, I am very new to HTML and I wonder if its possible to add a black background to this mostly transparent picture.

I would like to have it the same size and placement as the image. As I said im new to HTML so I dont know how complicated this is.


<IMG WIDTH=498 HEIGHT=498 ID="myImage" NAME="myImage"
SRC="PBPictures/Miscellaneous Pics/funnyfunkypadlock350.jpg"></IMG>

Any help would be highly appreciated.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Last edited by PBScott; 02-12-2009 at 10:18 AM..
PBScott is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-12-2009, 11:24 AM Re: Can I get a bit of code for this please?
Skilled Talker

Posts: 66
Trades: 0
What you should do is just style the background html to black and have it the same height and width as the image.

To do this, you just create a style sheet for your html page, add a div and id named to whatever you would like, and then just set the background color to black and the width and height to whatever size your image is.

Example of what the CSS id would be:

#image {
width: 800px;
height: 300 px;
background-color: #000000;
}

Hope this helps.
Mikeface is offline
Reply With Quote
View Public Profile
 
Old 02-12-2009, 09:29 PM Re: Can I get a bit of code for this please?
PBScott's Avatar
Extreme Talker

Posts: 160
Name: Scott
Location: Canada
Trades: 1
Thanks a ton I got it working with your help.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
PBScott is offline
Reply With Quote
View Public Profile
 
Old 02-18-2009, 09:34 AM Re: Can I get a bit of code for this please?
Novice Talker

Posts: 7
Trades: 0
Quote:
Originally Posted by PBScott View Post
Hi there, I am very new to HTML and I wonder if its possible to add a black background to this mostly transparent picture.

I would like to have it the same size and placement as the image. As I said im new to HTML so I dont know how complicated this is.


<IMG WIDTH=498 HEIGHT=498 ID="myImage" NAME="myImage"
SRC="PBPictures/Miscellaneous Pics/funnyfunkypadlock350.jpg"></IMG>

Any help would be highly appreciated.


I know all you CSS people are going to hate me for this but I am going to do it anyways. This could be considered bad form but it works..


Code:
<table bgcolor="#000000">
<tr><td>
<IMG WIDTH=498 HEIGHT=498 ID="myImage" NAME="myImage"
SRC="PBPictures/Miscellaneous Pics/funnyfunkypadlock350.jpg">
</td></tr></table>

but to make the CSS gods happy again i am going to add a link here to some great CSS tutorials. my2cents
<link drop removed>

Last edited by chrishirst; 02-21-2009 at 07:31 AM..
JoeHelper is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Can I get a bit of code for this please?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.22851 seconds with 12 queries