Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / HTML / July 2008



Tip: Looking for answers? Try searching our database.

placing img:s

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
eneroth3 - 31 Jul 2008 17:14 GMT
I have a problem with images on my site. If you place all images
without a <br> they will fill the row and then next row and so on. The
numbers of pictures on every row depends on the resolution. This is
exactly what I want except one problem. I also want a small
description under every image. I have tryed <div> and stuff but
nothing works. Do someone know how I can solve this problem?

I have one more problem too. The menu frame in my frameset should't
have any margin at except the one in that html it views. I have tryed
this; marginwidth="0" marginheight="0", byt it only works in firefox.
I have tryed ie, opera and safari but thay show the standard margins.
Do anyone know what's wrong?

Eneroth3
Travis Newbury - 31 Jul 2008 18:38 GMT
> I have a problem with images on my site..

Since you obviously don't know what's wrong with your code, maybe you
should post the URL here so someone can take a look at it.

--
Travis
Flash Crap: http://travisnewbury.blogspot.com
Jukka K. Korpela - 31 Jul 2008 18:45 GMT
Scripsit eneroth3:

> I have a problem with images on my site. If you place all images
> without a <br> they will fill the row and then next row and so on. The
> numbers of pictures on every row depends on the resolution.

Fine. There's the issue of spacing between images, but I guess you have
figured it out. Using CSS, it is easy to add some desired horizontal or
vertical spacing.

> This is
> exactly what I want except one problem. I also want a small
> description under every image.

Yes, that changes the picture (no pun intended).

The simple HTML-only way, frowned upon by some, is to use tables, with
one table consisting of an image and the description only, and with
align="left" attribute in <table> tags.

The CSS way is to use some markup (e.g., <div>) for a combination of an
image and the associated description and to set float: left for such
elements.

More info, with examples:
http://www.cs.tut.fi/~jkorpela/www/captions.html

> I have one more problem too. The menu frame in my frameset should't
> have any margin at except the one in that html it views.

Just stop using frames. Frames are evil. Don't do frames, mm'kay?
Problem solved - or at least converted to a reasonable problem.

Signature

Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Neredbojias - 31 Jul 2008 22:47 GMT
> I have a problem with images on my site. If you place all images
> without a <br> they will fill the row and then next row and so on. The
> numbers of pictures on every row depends on the resolution. This is
> exactly what I want except one problem. I also want a small
> description under every image. I have tryed <div> and stuff but
> nothing works. Do someone know how I can solve this problem?

Jukka seems to have covered it pretty well, but here is an example
demostrating some possibilities.  By increasing the bottom margin of the
image (-and changing to ems,) you can move the caption below it, etc.  This
page even seems to work in ie6 although my resources for checking that may
not be the best.

http://www.neredbojias.net/_dems/dem03.html

> I have one more problem too. The menu frame in my frameset should't
> have any margin at except the one in that html it views. I have tryed
> this; marginwidth="0" marginheight="0", byt it only works in firefox.
> I have tryed ie, opera and safari but thay show the standard margins.
> Do anyone know what's wrong?

You really shouldn't use frames unless you absolutely have to.  If such is
the case, html 4.01 provides for new ways of dealing with frame borders, but
they may be limited.  Did you Google for "frames borders"?

Signature

Neredbojias
http://www.neredbojias.net/
Great sights and sounds

dorayme - 01 Aug 2008 00:31 GMT
In article
<b99e13b6-a782-4188-98c4-5f44f9b9af0c@i76g2000hsf.googlegroups.com>,

> I have a problem with images on my site. If you place all images
> without a <br> they will fill the row and then next row and so on. The
> numbers of pictures on every row depends on the resolution. This is
> exactly what I want except one problem. I also want a small
> description under every image. I have tryed <div> and stuff but
> nothing works. Do someone know how I can solve this problem?

You might look at this sort of template and adapt to your needs.

<http://tinyurl.com/2jcs5r>


> I have one more problem too. The menu frame in my frameset should't
> have any margin at except the one in that html it views. I have tryed
> this; marginwidth="0" marginheight="0", byt it only works in firefox.
> I have tryed ie, opera and safari but thay show the standard margins.
> Do anyone know what's wrong?

You would need to post a URL. But if you have something like:

<frameset cols="150,*">

<frame src="navigation.html" name="navigation">
<frame src="content.html" name="content">  

</frameset>

make sure you examine the simple margins and paddings in the actual
frames, navigation.html and content.html. Set the side ones to zero if
need be.

If you post a URL, I would be happy to take a look and suggest
something.

(In fact, anything to do with Frames, it would be a pleasure, like
fiddling with a 37 year old car - I am missing my old beast, a Ford XY
and had to sell it recently and am driving a pesky modern thing that
never seems to go wrong, a dangerous thing as this induces sleepy
boredom while driving instead of my former alert nervousness)

Signature

dorayme

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.