Body: <p>Subject says it all. I know that I can use <code>float:left</code> and <code>float:right</code>, but this does not work if the combined lenght of texts is more than a line. I would like to have some text anchored to the left and some other text anchored to the right, but I don't know in advance how much text there is.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-06-23T15:47:40.183Z
Comments.Text: `float` works with a single line as well with multiple, see https://jsfiddle.net/zxrmfv31/
Comments.UserDisplayName: Olaf Dietsche
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-06-25T10:13:22.920Z
Comments.Text: @OlafDietsche it works because you have a short width for both columns. I must mimic something like https://upload.wikimedia.org/wikipedia/commons/thumb/6/63/Goldoni_-_Opere_complete%2C_Tomo_I%2C_Venezia_1907%2C_I.djvu/page598-1024px-Goldoni_-_Opere_complete%2C_Tomo_I%2C_Venezia_1907%2C_I.djvu.jpg
Comments.UserDisplayName: mau
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-06-25T11:15:49.800Z
Comments.Text: I cannot see the image, do you mean https://commons.wikimedia.org/w/index.php?title=File%3AGoldoni_-_Opere_complete%2C_Tomo_I%2C_Venezia_1907%2C_I.djvu&page=598? This is done with a `<table>`.
Comments.UserDisplayName: Olaf Dietsche
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-06-28T17:47:17.713Z
Comments.Text: @OlafDietsche no - look at https://imgur.com/a/FBIRCSl . As you may see, for example ''(bruscamente'' is right justified within the line.
Comments.UserDisplayName: mau
Tags: <css>
Title: Is there an equivalent of TeX's \hfill in CSS?
UserDisplayName: mau
ThreadText: # Is there an equivalent of TeX's \hfill in CSS?
  
  (Asked by: username_0 on 2019-06-18)
  
  Subject says it all. I know that I can use `float:left` and `float:right`, but this does not work if the combined lenght of texts is more than a line. I would like to have some text anchored to the left and some other text anchored to the right, but I don't know in advance how much text there is.
  
  **Tags:** css
  
  > **Comments:**
  > **username_1**: `float` works with a single line as well with multiple, see https://jsfiddle.net/zxrmfv31/  
  > **username_0**: @username_1 it works because you have a short width for both columns. I must mimic something like https://upload.wikimedia.org/wikipedia/commons/thumb/6/63/Goldoni_-_Opere_complete%2C_Tomo_I%2C_Venezia_1907%2C_I.djvu/page598-1024px-Goldoni_-_Opere_complete%2C_Tomo_I%2C_Venezia_1907%2C_I.djvu.jpg  
  > **username_1**: I cannot see the image, do you mean https://commons.wikimedia.org/w/index.php?title=File%3AGoldoni_-_Opere_complete%2C_Tomo_I%2C_Venezia_1907%2C_I.djvu&page=598? This is done with a `<table>`.  
  > **username_0**: @username_1 no - look at https://imgur.com/a/FBIRCSl . As you may see, for example ''(bruscamente'' is right justified within the line.  
  
  ---
  
  ## 0 answers
  
  