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
    Member VonKreutz's Avatar
    Join Date
    Jul 2005
    Posts
    37
    Member #
    10487
    I have been using tables for a long time to desing my pages, and are now trying to get my head around CSS, since this seems to be the way to go now. If someone could help me with the proper way of positioning images on my webpages I would sure appreciate it.

    Do I use the <DIV> before the <IMG SRC> or do I put the style tag inside my <IMG SRC> tag?...I'm a little confused.

    Thanks.

  2.  

  3. #2
    Senior Member karinne's Avatar
    Join Date
    Dec 2003
    Location
    Aylmer QC Canada
    Posts
    1,607
    Member #
    4335
    Liked
    8 times
    You can do it either way.
    [a web design portfolio - Currently NOT AVAILABLE for work | web design | Re-coding | PSD-to-HTML]
    I'm also on: virb - facebook - twitter - flickr - del.icio.us

  4. #3
    Senior Member glyakk's Avatar
    Join Date
    Nov 2003
    Location
    USA
    Posts
    1,263
    Member #
    3828
    Liked
    6 times
    CSS does not require that you structure your markup(html) to fit a certin scheme like designing in tables does. So it does not require that you use <div> tags at all. However, <div>'s do make organizing 'chunks' of elements easier. The only tag that was introduced with CSS was the <style> tag and even that is not required to use css.

    So to answer your question yes you can use a <div> around your <img> to help position it but it is by no means required. In fact, since it would be the only element in that <div>, I would advise against it.


  5. #4
    Member VonKreutz's Avatar
    Join Date
    Jul 2005
    Posts
    37
    Member #
    10487
    Thanks guys, I've tried both ways now, and it seems like it's more a personal preference more than anything else then, how to use CSS tags. I guess it will take some time to get used to it, but I can already now see what a huge advantage css must be compared to tables....


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 08:37 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com