Author Topic: Who knows anything about HTML?  (Read 1148 times)

0 Members and 1 Guest are viewing this topic.

Offline Chino

  • Be excellent to each other.
  • DT.net Veteran
  • ****
  • Posts: 25324
  • Gender: Male
Who knows anything about HTML?
« on: September 13, 2012, 12:37:09 PM »
I'm very stuck on the simplest of objectives....

I'm trying to get the final 3 lines of my address and info to line up with the first line... I know I could just use <p></p>, but that causes double spacing, and I don't want that. Please help  :heart


Offline Super Dude

  • Hero of Prog
  • DTF.com Member
  • **
  • Posts: 16265
  • Gender: Male
Re: Who knows anything about HTML?
« Reply #1 on: September 13, 2012, 12:46:52 PM »
Do you mean by centering it? Or actually on the same line?
Quote from: bosk1
As frequently happens, Super Dude nailed it.
:superdude:

Offline rumborak

  • DT.net Veteran
  • ****
  • Posts: 26664
Re: Who knows anything about HTML?
« Reply #2 on: September 13, 2012, 12:48:03 PM »
I would suggest you use a table with zero-width borders.
"I liked when Myung looked like a women's figure skating champion."

Offline Chino

  • Be excellent to each other.
  • DT.net Veteran
  • ****
  • Posts: 25324
  • Gender: Male
Re: Who knows anything about HTML?
« Reply #3 on: September 13, 2012, 12:48:45 PM »
Do you mean by centering it? Or actually on the same line?

I don't want to center align because they wont all start at the same spot. I want them all to start 200 pixels in without have a line break.

Offline Chino

  • Be excellent to each other.
  • DT.net Veteran
  • ****
  • Posts: 25324
  • Gender: Male
Re: Who knows anything about HTML?
« Reply #4 on: September 13, 2012, 12:52:45 PM »
I would suggest you use a table with zero-width borders.

I fucking love you.

Offline Chino

  • Be excellent to each other.
  • DT.net Veteran
  • ****
  • Posts: 25324
  • Gender: Male
Re: Who knows anything about HTML?
« Reply #5 on: September 13, 2012, 12:54:05 PM »
I would suggest you use a table with zero-width borders.

But how would I get that 200 pixels in?

*edit*

No need to answer that. I got this shit.
« Last Edit: September 13, 2012, 01:01:34 PM by Chino »

Offline Implode

  • Lord of the Squids
  • DTF.org Alumni
  • ****
  • Posts: 5821
  • Gender: Male
Re: Who knows anything about HTML?
« Reply #6 on: September 13, 2012, 01:04:43 PM »
Ah, the feelng of figuring something out in a programming language. It feels like winning.

Offline Chino

  • Be excellent to each other.
  • DT.net Veteran
  • ****
  • Posts: 25324
  • Gender: Male
Re: Who knows anything about HTML?
« Reply #7 on: September 13, 2012, 01:07:13 PM »
I would suggest you use a table with zero-width borders.

But how would I get that 200 pixels in?

*edit*

No need to answer that. I got this shit.

Actually, I lied. I don't. What I did just resulted in the text starting at the 200px mark. The table still starts at 1px. I need to have a pic to the left of this table, and that can't happen with my current set up. :(

Offline Orbert

  • Recovering Musician
  • EZBoard Elder
  • *****
  • Posts: 19263
  • Gender: Male
  • In and around the lake
Re: Who knows anything about HTML?
« Reply #8 on: September 13, 2012, 01:11:28 PM »
Make a two-column table, and put your pic in the first column.  Have it span all rows.  All the text goes in the second column.

Offline Chino

  • Be excellent to each other.
  • DT.net Veteran
  • ****
  • Posts: 25324
  • Gender: Male
Re: Who knows anything about HTML?
« Reply #9 on: September 13, 2012, 01:40:38 PM »
Thank you everyone!! That definitely shouldn't have taken me almost 2 hours to figure out  :lol Granted this is my first time using HTML, but I can't believe I didn't think of that.

It's not pretty, but it works.



*edit*

I'm trying to get my email address to actually be clickable. I can't figure it out. My code looks spot on??

<td><font size="6"> <a href="mailto:MendicinoB@gmail.com"> MendicinoB@gmail.com </a> </td>
« Last Edit: September 13, 2012, 01:49:08 PM by Chino »

Offline ReaPsTA

  • DT.net Veteran
  • ****
  • Posts: 11204
  • Gender: Male
  • Addicted to the pain
Re: Who knows anything about HTML?
« Reply #10 on: September 13, 2012, 01:53:32 PM »
Oh... my... god....

:clap:
Take a chance you may die
Over and over again

Offline Lynxo

  • It hurts when I poo
  • Posts: 1616
  • Gender: Male
Re: Who knows anything about HTML?
« Reply #11 on: September 14, 2012, 03:10:19 PM »
I would strongly advise you to skip the tables. Tables should not be used for this kind of thing. It's considered bad practice.

Try something like this:

Code: [Select]
<!doctype html>
<html>
<head>
<title>Resume</title>

<style>
img { float: left; margin-right: 15px; }
h1 { font-size: 20px; }
p { font-size: 12px; }
</style>

</head>

<body>

<img src="linkToYourImage.jpg" />

<h1>Brian Medicino</h1>
<p>
Your adress thingy<br />
More text<br />
More text, etc<br />
<a href="mailto:MendicinoB@gmail.com">MendicinoB@gmail.com</a>
</p>

</body>
</html>

For your particular case, if you want that margin for the p-tag, don't use text-indent. Use margin-left or padding-left.
Lynxo cured my bad breath with his penis.