Jump to content

putting text right below an image

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
25 replies to this topic

#1
samit

samit

    Newbie

  • Members
  • Pip
  • 7 posts
Hello,

I am building a site where it will have several images and need to put a description text right below the image but I can't seem to get the text just right below it. I can only get it there but there is like a line in between and I dont want any spaces between the image and the text. (maybe a little but minimun)

Thanks

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
It will depend somewhat on the browser as to how it renders. IE gives me more space than FF on a regular basis.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
morefood2001

morefood2001

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,720 posts

WingedPanther said:

It will depend somewhat on the browser as to how it renders. IE gives me more space than FF on a regular basis.

You need to fiddle with table borders, and if using css, margins and padding. Since different browsers render differently, you will likely need a css file or different settings for each browser.

To answer your question more specifically, What are you using, strict html or css with html?

#4
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
CSS, I should hope!
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#5
adserverexpert

adserverexpert

    Newbie

  • Members
  • PipPip
  • 21 posts
use css

#6
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts

morefood2001 said:

What are you using, strict html or css with html?
Preferably a mixture of XHTML and CSS, if you're following the standards.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#7
morefood2001

morefood2001

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,720 posts

Xav said:

Preferably a mixture of XHTML and CSS, if you're following the standards.

I program using XHTML and CSS standards, and I wouldn't consider changing for anything. It takes a while to learn all the tricks (the one that got me was <br />).

#8
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Hmm - I always use XHTML. And CSS. Although I admit to sometimes using tables. :o
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#9
morefood2001

morefood2001

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,720 posts

Xav said:

Hmm - I always use XHTML. And CSS. Although I admit to sometimes using tables. :o

I use tables too because they work in both IE and FF compared to divs / span tags which normally don't work. If I don't include tables, I normally only program for Firefox which covers only 20% of the website traffic my site gets on average. It will be nice when IE8 comes out with standard compliant rendering.

#10
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts

Xav said:

Hmm - I always use XHTML. And CSS. Although I admit to sometimes using tables. :o

What is wrong with using tables? There is no XHTML law that prevents their use. HTML 5 still supports tables. I hate how people view the use of tables as a cardinal sin. A table is meant to organize data. No matter how hard you try, it will never be a better idea to use 25 div elements (minimum) to represent a 5x5 table. A div is used as a container to place document objects like tables inside, but not actual data.

#11
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
I agree entirely. These 'web standards' suck. I mean, look at the Google homepage - everything is in a 1-column table. If Google can use it, we can as well.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#12
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts

Xav said:

I agree entirely. These 'web standards' suck. I mean, look at the Google homepage - everything is in a 1-column table. If Google can use it, we can as well.

It's not the standards that suck, it's just people loose sight of what the standards actually are.