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
putting text right below an image
Started by samit, Sep 11 2008 06:59 AM
25 replies to this topic
#1
Posted 11 September 2008 - 06:59 AM
|
|
|
#2
Posted 11 September 2008 - 07:46 AM
It will depend somewhat on the browser as to how it renders. IE gives me more space than FF on a regular basis.
#3
Posted 11 September 2008 - 08:59 AM
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?
#5
Posted 19 September 2008 - 04:47 AM
use css
#7
Posted 19 September 2008 - 11:27 AM
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 />).
#9
Posted 19 September 2008 - 05:01 PM
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
Posted 19 September 2008 - 11:09 PM
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
Posted 21 September 2008 - 11:25 AM
#12
Posted 22 September 2008 - 01:23 PM
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.


Sign In
Create Account

Back to top









