placing img:s

Discussion in 'HTML' started by eneroth3, Jul 31, 2008.

  1. eneroth3

    eneroth3 Guest

    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
     
    eneroth3, Jul 31, 2008
    #1
    1. Advertising

  2. On Jul 31, 12:14 pm, eneroth3 <> wrote:
    > 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
     
    Travis Newbury, Jul 31, 2008
    #2
    1. Advertising

  3. 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.

    --
    Jukka K. Korpela ("Yucca")
    http://www.cs.tut.fi/~jkorpela/
     
    Jukka K. Korpela, Jul 31, 2008
    #3
  4. eneroth3

    dorayme Guest

    In article
    <>,
    eneroth3 <> wrote:

    > 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)

    --
    dorayme
     
    dorayme, Aug 1, 2008
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Art Kedroski
    Replies:
    2
    Views:
    357
    Art Thomas
    Aug 1, 2003
  2. news.austin.rr.com

    how to download img from html img tag

    news.austin.rr.com, Apr 27, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    512
    Steve C. Orr [MVP, MCSD]
    Apr 27, 2005
  3. Philipp Lenssen

    Problem: <img></img>

    Philipp Lenssen, Jun 27, 2005, in forum: XML
    Replies:
    15
    Views:
    766
    David Håsäther
    Jul 3, 2005
  4. Jopek
    Replies:
    7
    Views:
    404
    dorayme
    Apr 26, 2009
  5. Replies:
    7
    Views:
    182
    Tad McClellan
    Jun 22, 2006
Loading...

Share This Page