School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

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




Img tag being stupid again

 

Img tag being stupid again

musya

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

D.I.C Addict
Group Icon

Joined: 25 Apr, 2007
Posts: 726



Thanked: 8 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
+Quote Post


PsychoCoder

RE: Img Tag Being Stupid Again

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

Dyslexics Untie!
Group Icon

Joined: 26 Jul, 2007
Posts: 14,714



Thanked: 501 times
Dream Kudos: 11450
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net, jQuery

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
+Quote Post

musya

RE: Img Tag Being Stupid Again

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

D.I.C Addict
Group Icon

Joined: 25 Apr, 2007
Posts: 726



Thanked: 8 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
+Quote Post

musya

RE: Img Tag Being Stupid Again

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

D.I.C Addict
Group Icon

Joined: 25 Apr, 2007
Posts: 726



Thanked: 8 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
+Quote Post

BenignDesign

RE: Img Tag Being Stupid Again

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

Google is mah BFF
Group Icon

Joined: 28 Sep, 2007
Posts: 1,824



Thanked: 17 times
Dream Kudos: 150
Expert In: sporks

My Contributions
Could the line of padding at the bottom be coming from whatever is positioned BENEATH the image??
User is offlineProfile CardPM
+Quote Post

Zumiic

RE: Img Tag Being Stupid Again

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
+Quote Post

musya

RE: Img Tag Being Stupid Again

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

D.I.C Addict
Group Icon

Joined: 25 Apr, 2007
Posts: 726



Thanked: 8 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
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/8/09 04:09AM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month