Killersites.com Homepage Welcome Guest   |   Register  |  Login
Login Name Password
  Search  
  Index  | Recent Threads  | Unanswered Threads  | Who's Online  | User List  | Help


Quick Go »

No member browsing this thread
Thread Status: Active
Total posts in this thread: 8
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 15783 times and has 7 replies Next Thread
Male newseed
Advanced Member
Member's Avatar


Joined: Apr 2, 2005
Post Count: 2141
Status: Offline
Reply to this Post  Reply with Quote 
Padding Between Image and Text

For some reason, I cannot get it to allow padding (spacing) between the image and text.

The image is set to align left so that the text can be placed to the right of the image but I need spacing so that the text does not lean against the image.

Here's my code:

<table width="100%">
<tr>
<td>
<a class="padright" href="images/first-street-1920.jpg" onclick="return popImage(this.href,'Sanford Naval Academy');">
<img src="images/first-street-1920_small.jpg" alt="Sanford, Florida - First Street 1920" align="left" ></a>
<p class="break">An artist rendering of First Street, Sanford. FL
in 1920 used as a post card.</p>
<p class="break">Author: Unknown</p>
<p class="break">Source: <a class="text-menu" href="http://www.cyburbia.org">http://www.cyburbia.org</a>
</p>


CSS:

.break {margin-bottom:0px
}

.padright { padding-right: 15px;
}


Thanks.
----------------------------------------
Success is based on how much you spend. If it's not money, then the alternative is your time.
The Kasper Group


[Apr 7, 2006 9:29:10 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male LSW
Advanced Member
Member's Avatar

USA
Joined: Nov 27, 2003
Post Count: 6285
Status: Offline
Reply to this Post  Reply with Quote 
Re: Padding Between Image and Text

Try floating the image?
[Apr 7, 2006 10:15:51 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male tpattison
Advanced Member
Member's Avatar

UK
Joined: Dec 29, 2004
Post Count: 1662
Status: Offline
Reply to this Post  Reply with Quote 
Re: Padding Between Image and Text

A link to the actual page would be a great help. biggrin
----------------------------------------
Pavonis Mons | Listen of the week: "Residue of Desire" by Acumen
[Apr 7, 2006 12:42:53 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male newseed
Advanced Member
Member's Avatar


Joined: Apr 2, 2005
Post Count: 2141
Status: Offline
Reply to this Post  Reply with Quote 
Re: Padding Between Image and Text

Here's the link: SNA site

I was trying to make it work using <div> instead of tables but for some reason I could never position the <div> like I did with the tables. If you have a solution for that, I am open to learn it and apply it.

Otherwise, just getting the padding to work between the image and text will suffice for me.
----------------------------------------
Success is based on how much you spend. If it's not money, then the alternative is your time.
The Kasper Group

[Apr 7, 2006 3:00:18 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Female oneofakind2727
Stranger




Joined: Apr 7, 2006
Post Count: 2
Status: Offline
Reply to this Post  Reply with Quote 
Re: Padding Between Image and Text

why not just throw some vspace="3" hspace="3"

hspace controls the horizontal padding and vspace controls vertical padding

Another one I find handy is if you have <P></P> Tags, throw some margin heights in there.
<P style="margin:0px 0px 0px 0px">Hello</p>

Remember it goes in order TOP RIGHT BOTTOM LEFT

Inline style is nice... hope this helped
[Apr 7, 2006 3:52:46 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male newseed
Advanced Member
Member's Avatar


Joined: Apr 2, 2005
Post Count: 2141
Status: Offline
Reply to this Post  Reply with Quote 
Re: Padding Between Image and Text

why not just throw some vspace="3" hspace="3"

hspace controls the horizontal padding and vspace controls vertical padding

Another one I find handy is if you have <P></P> Tags, throw some margin heights in there.
<P style="margin:0px 0px 0px 0px">Hello</p>

Remember it goes in order TOP RIGHT BOTTOM LEFT

Inline style is nice... hope this helped


Thanks but I want to apply this to external CSS and avoid using vspace and hspace.
----------------------------------------
Success is based on how much you spend. If it's not money, then the alternative is your time.
The Kasper Group

[Apr 7, 2006 4:12:52 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Female lm
Advanced Member
Member's Avatar


Joined: Oct 27, 2004
Post Count: 2550
Status: Offline
Reply to this Post  Reply with Quote 
Re: Padding Between Image and Text

hi,
as lsw said it is better to float the image. I dont know if you saw this example
----------------------------------------

My blog

[Apr 7, 2006 5:02:16 PM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male newseed
Advanced Member
Member's Avatar


Joined: Apr 2, 2005
Post Count: 2141
Status: Offline
Reply to this Post  Reply with Quote 
Re: Padding Between Image and Text

That link opened my eyes. Got it to work: SNA

I was not implementing float: left (or right) correctly.

Thanks for the help.
----------------------------------------
Success is based on how much you spend. If it's not money, then the alternative is your time.
The Kasper Group

[Apr 7, 2006 6:02:19 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread