Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jun 2013
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Css/Html image placement issues

    hey i understand how to center my image but i have no idea how to combine the two. Here is my best attempt
    [CODE]
    </div>

    <dev style="margin-left: auto; margin-right: auto;position:absolute;top:200px;">
    <center>

    <img src="textbloc.jpg">

    </center>

    </dev>
    [CODE]

  • #2
    New Coder
    Join Date
    May 2009
    Posts
    45
    Thanks
    0
    Thanked 3 Times in 3 Posts
    What are you trying to combine? I'm not quite sure what you're asking. Are you trying to center an image within a div?

    The first issue to fix is changing "dev" to "div."

  • #3
    New Coder
    Join Date
    Jun 2013
    Location
    Rio Rancho
    Posts
    18
    Thanks
    2
    Thanked 0 Times in 0 Posts
    I believe that you're trying to combine how it's positioned with the dev tags, and how it's positioned with the center tags. Assuming that this is right, here's my suggestion:

    [CODE]
    </div>

    <dev style="position:absolute;">
    <center>

    <img src="textbloc.jpg">

    </center>

    </dev>
    [CODE]

    Then add line break tags to get your image in the proper position.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •