Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Sep 2007
    Posts
    1
    Member #
    15900
    just recently started learning html and have started building my own site. my question is one that i am having a big problem with but i'm sure it's an easy solution.
    i want to put 2 pictures on the page but on the same "line" of the layout, for instance:
    PICTURE BANNER PICTURE
    (links) (text) (links)

    but every time i want to put say the picture and banner next to each other, the banner is pushed down and i don't know how to fix it.
    ty in advanced!

  2.  

  3. #2
    Senior Member Steax's Avatar
    Join Date
    Dec 2006
    Location
    Bandung, Indonesia
    Posts
    1,207
    Member #
    14572
    What's the current markup you're using? And you should be using HTML alongside CSS, because CSS is the one who turns your code into an actual layout.
    Note on code: If I give code, please note that it is simply sample code to demonstrate an effect. It is not meant to be used as-is; that is the programmer's job. I am not responsible to give you support or be held liable for anything that happens when using my code.

  4. #3
    Member TheGardener's Avatar
    Join Date
    Jun 2006
    Posts
    62
    Member #
    13332
    If you don't know CSS you need to learn it (w3schools.com is a good place). If you know CSS, the way to line elements up is to give them the display:inline property. Generally, lined-up elements should be placed inside a larger div to hold them. For example:

    HTML Code:
    <div class="holder">
    
       <a href="somewhere"><img class="inLineImg" src="./image.jpg" alt="image" /></a>
    
       <a href="somewhere"><img class="inLineImg" src="./image2.jpg" alt="image" /></a>
    
    </div>
    And the CSS:

    Code:
    .inLineImg {
       display: inline;
    }

  5. #4
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,693
    Member #
    5580
    Liked
    717 times
    Ravius ... give us a link to your site.



Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 01:15 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com