Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Why positioning is not working?

Why positioning is not working?

Scheduled Pinned Locked Moved Web Development
phpcomquestionannouncement
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jassim Rahma
    wrote on last edited by
    #1

    Hi, I am trying to position My Account button to the right and the logo at the left but both should be at the same level. I am trying below code but the top position is not working. Why?


    Please check this image[^] Thanks, Jassim[^]

    Technology News @ www.JassimRahma.com

    S C 2 Replies Last reply
    0
    • J Jassim Rahma

      Hi, I am trying to position My Account button to the right and the logo at the left but both should be at the same level. I am trying below code but the top position is not working. Why?


      Please check this image[^] Thanks, Jassim[^]

      Technology News @ www.JassimRahma.com

      S Offline
      S Offline
      Shmuel Zang
      wrote on last edited by
      #2

      Maybe your elements' position is relative. Try to change it to absolute. Something like:

      <img src="images/logo.jpg" style=" margin-top: 0; margin-left: 0px; position: absolute;">
      <img src="images/my_account.png" style="margin-top: 0; margin-left: 500px; position: absolute;">

      1 Reply Last reply
      0
      • J Jassim Rahma

        Hi, I am trying to position My Account button to the right and the logo at the left but both should be at the same level. I am trying below code but the top position is not working. Why?


        Please check this image[^] Thanks, Jassim[^]

        Technology News @ www.JassimRahma.com

        C Offline
        C Offline
        Coing_Addict
        wrote on last edited by
        #3

        Just use

        float

        property

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups