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

Join 136,526 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,840 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
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
+Quote Post

PsychoCoder
RE: Img Tag Being Stupid Again
14 Aug, 2008 - 02:43 PM
Post #2

using DIC.Core;
Group Icon

Joined: 26 Jul, 2007
Posts: 8,996



Thanked: 125 times
Dream Kudos: 8625
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 online!Profile CardPM
+Quote Post

musya
RE: Img Tag Being Stupid Again
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
+Quote Post

musya
RE: Img Tag Being Stupid Again
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
+Quote Post

BenignDesign
RE: Img Tag Being Stupid Again
14 Aug, 2008 - 11:24 PM
Post #5

Bubble wrapped for your safety.
Group Icon

Joined: 28 Sep, 2007
Posts: 956



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

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 09:48PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month