Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,648 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,119 people online right now. Registration is fast and FREE... Join Now!




Img tag being stupid again

 
Reply to this topicStart new topic

Img tag being stupid again

musya
post 14 Aug, 2008 - 02:35 PM
Post #1


D.I.C Regular

Group Icon
Joined: 25 Apr, 2007
Posts: 291



Thanked 1 times

Dream Kudos: 50
My Contributions


so i have this image tag in place
html

<img src="images/bottom_images/bottom.jpg" border="0" alt="Prosser" title="Prosser" width="800" height="136" vspace="0" hspace="0"/>


and i get padding and spacing, and in my css for the site i defined a genral img tag like so
css

img
{
padding:0px;
}


odly though even if i put a background image their, it creates spacing but only 1 px of padding or something and i dont know where its coming from.

Any help would be greatly appreciated thanks guys. if you need my row code just let me know, but its deisinged for joomla i warn you. wink2.gif

This post has been edited by musya: 14 Aug, 2008 - 02:44 PM
User is offlineProfile CardPM

Go to the top of the page

PsychoCoder
post 14 Aug, 2008 - 02:43 PM
Post #2


using DIC.Core;

Group Icon
Joined: 26 Jul, 2007
Posts: 8,933



Thanked 118 times

Dream Kudos: 8525

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions


Well if this CSS is straight from your CSS file it's wrong. This

css

img
{
padding:opx;
}


Should be

css

img
{
padding:0px;
}


In the code you pasted you have a o not a 0 (zero)
User is offlineProfile CardPM

Go to the top of the page

musya
post 14 Aug, 2008 - 02:48 PM
Post #3


D.I.C Regular

Group Icon
Joined: 25 Apr, 2007
Posts: 291



Thanked 1 times

Dream Kudos: 50
My Contributions


Yea I caught that but not that wasn't straight from my css I wrote that just now.
User is offlineProfile CardPM

Go to the top of the page

musya
post 14 Aug, 2008 - 03:17 PM
Post #4


D.I.C Regular

Group Icon
Joined: 25 Apr, 2007
Posts: 291



Thanked 1 times

Dream Kudos: 50
My Contributions


okay so I figured out the other issues, but their still is a line of padding on the bottom of the image.
User is offlineProfile CardPM

Go to the top of the page

BenignDesign
post 14 Aug, 2008 - 11:24 PM
Post #5


Bubble wrapped for your safety.

Group Icon
Joined: 28 Sep, 2007
Posts: 931



Thanked 2 times

Dream Kudos: 150
My Contributions


Could the line of padding at the bottom be coming from whatever is positioned BENEATH the image??
User is online!Profile CardPM

Go to the top of the page

Zumiic
post 14 Aug, 2008 - 11:40 PM
Post #6


New D.I.C Head

*
Joined: 20 Nov, 2007
Posts: 13


My Contributions


QUOTE(BenignDesign @ 15 Aug, 2008 - 12:24 AM) *

Could the line of padding at the bottom be coming from whatever is positioned BENEATH the image??


Yeah check if your image doesnt have a 1px line. Happened to me once, was pretty upset when i found out that the trouble was made by that.
User is offlineProfile CardPM

Go to the top of the page

musya
post 17 Aug, 2008 - 01:24 PM
Post #7


D.I.C Regular

Group Icon
Joined: 25 Apr, 2007
Posts: 291



Thanked 1 times

Dream Kudos: 50
My Contributions


Nope, none of that, still troubling me, but ehh, what ev, ill get it later, this stuff is starting to get to me
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 05:04AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month