473,387 Members | 1,619 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Aligning Text

unstoppablekatia
I have a website that has images on it, and underneath the images are text. My only option of aligning the images and text separate from each other, is to do <div align="right">, <center>, or <div align="left">. Neither of them help with what I want to do, and nor does <display:inline> or <float:right>, even adding them to the image links does no good.

My Question: I would like the images to be right next to each other on the page, with the text, not one below the other. Can you give me the correct code/s?
Feb 13 '09 #1
10 2170
David Laakso
397 Expert 256MB
No doubt whatsover that this is a reasonable and good question. Got a clickable link to to the page in question?
Feb 13 '09 #2
I sure do.

http://giveback.bridgettesdiary.com

There is a list of charities I've listed for my readers to help out, and I need those aligned together in pairs of two.

Thanks for your help in advance! :-D
Feb 13 '09 #3
drhowarddrfine
7,435 Expert 4TB
This is one way to do it. Get rid of <center> and the <br>s:
Expand|Select|Wrap|Line Numbers
  1. <p style="width:500px;margin:0 auto">
  2. <a href="http://www.marchofdimes.com/">
  3. <img style="float:left" src="http://i41.tinypic.com/28t8aia.png"/></a>
  4. Give a helping hand to infants in need.
  5. The March of Dimes is dedicated to improving
  6. the life of infants by preventing birth defects,
  7. premature delivery, and infant mortality,
  8. See what you can do today!
  9. </p>
<center> is deprecated. Don't have time to mess with this this morning.
Feb 13 '09 #4
Thanks for the help, but I didn't mean the text aligned next to the photo. I meant photo and photo. I liked the text underneath. Any other ideas?
Feb 13 '09 #5
David Laakso
397 Expert 256MB
Ouch! You are unlikely to get much help for your favorite charities from your readers feeding 185 markup errors combined with frozen mousetype in a table based layout.

It is 2009, not 1999-- time to ditch tables for layout and the deprecated coding practices associated with them...

Doctype moved to strict. Garbage code deleted. Tables ditched. Markup and CSS validated. Cursory checked at +4 in compliant browsers and at text-size "largest" in IE 6 & 7.
http://www.chelseacreekstudio.com/ca/cssd/heart.htm

Good luck.
Feb 13 '09 #6
Lol, thanks for the help, but do you think someone that bad at HTML would be able to make that with no in-depth instructions? *numb*
Feb 13 '09 #7
David Laakso
397 Expert 256MB
If an online example doesn't do it for you, knock yourself out and take a university course, or take an online course, or buy a book, or flail around until you find someone willing to stoop to whatever level of mediocrity you wish...
Feb 13 '09 #8
I hope you don't get me wrong here, it's just that I have a very busy life, the blogging is a hobby. I'm only 14, you can't expect me to know the how-tos of modern and hip HTML/CSS and I have barely any time to learn any. I started out with a Blogger template. Hopefully I'll get to take some courses this year on the topic. Thanks for all your help!

What are some books you recommend on that form of HTML?
Feb 13 '09 #9
Dormilich
8,658 Expert Mod 8TB
@unstoppablekatia
http://www.alistapart.com/articles/alaprimer2/
http://www.alistapart.com/articles/ALAprimer/
there are some good remarks in the discussions, too

a quite comprehensive list, in my opinion
Feb 13 '09 #10
@Dormilich
Thanks! I'll be sure to check those out.
Feb 13 '09 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Steven Bethard | last post by:
I have a string with a bunch of whitespace in it, and a series of chunks of that string whose indices I need to find. However, the chunks have been whitespace-normalized, so that multiple spaces...
1
by: Graham Cross | last post by:
Dear All Is there an HTML way of aligning the images on this page http://www.ageconcernleics.com/review03/chairs03.html so that they appear evenly spaced relative to the text column on the...
2
by: Dave | last post by:
Hello all, I need to know if you can vertically align Items within an ItemTemplate. For example I have two columns, one column has a stack of 6 textboxes, my second column can have 1 to n...
1
by: Linux Boy via .NET 247 | last post by:
(Type your message here) Hi everyone, I would like to ask a question about aligning text within one label. I have an application that everytime the user click on Enter Record button, they will...
9
by: Steven Bethard | last post by:
I've got a list of word substrings (the "tokens") which I need to align to a string of text (the "sentence"). The sentence is basically the concatenation of the token list, with spaces sometimes...
6
by: tomasio | last post by:
Dear NG-readers, I want to align text right to an image. The last line of text should align with the bottom edge of the image. Unfortunately, the results using my poor CSS knowledge mounted in...
4
by: Steven Bethard | last post by:
I have some plain text data and some SGML markup for that text that I need to align. (The SGML doesn't maintain the original whitespace, so I have to do some alignment; I can't just calculate the...
0
by: Steven Bethard | last post by:
I'm trying to align an XML file with the original text file from which it was created. Unfortunately, the XML version of the file has added and removed some of the whitespace. For example:: ......
2
by: agbee1 | last post by:
Hello: I've finally made the effort to ween myself from overly using tables and use CSS for my positioning. However, I am having a problem with my navigational menu properly aligning in Firefox,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.