With markup like this:
<div id='titlebar'>
  <a><img src='foo.png'></a>
  <span>Title</span>
<开发者_JAVA百科;/div>
is it possible to center "Title" while positioning the anchored image?
   ... [foo] .....................Title ...............................
Thanks
#titlebar {
  text-align: center;
}
#titlebar a {
  position: relative;
  left: -40em;
}
Try that.
The title text will be slightly off center due to the original positioning of the image in the anchor, so you can apply a relative position to that as well.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论