html - CSS Text Overflow -


i have series of nested divs in trying have 1 piece of text, "ticket name", overflow onto 2 others.

here's picture of undesired results:

enter image description here

and here's code:

<!doctype html> <html> <head> <meta charset="utf-8"> <title>game</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <div id="game_head">      <div id="timer">     </div>      <div id="flags">         <div id="best_of">         </div>     </div>      <div id="team_1">         <span class="team_name">team 1</span>     </div>      <div id="ticket">         <span class="versus">vs</span>         <span class="ticket_name">ticket name</span>     </div>      <div id="team_2">         <span class="team_name">team 2</span>     </div> </div> <div id="game_body">  </div>  <body> </body> </html> 

my css looks this:

#game_head {     height: 62px;     width: 555px;     background-color: #ccc; } #timer {     height: 100%;     width: 26%;     background-color:#111;     float:left; } #flags {     height: 100%;     width: 4%;     background-color:#333;     float:left; } #best_of{     height:33%;     background-color:#f00;   } #team_1 {     height: 100%;     width: 31.5%;     background-color:#999;     float:left;     text-align:center;     display:table; } #team_2 {     height: 100%;     width: 31.5%;     background-color:#999;     float:left;     text-align:center;     display:table; } #ticket {     height: 100%;     width: 7%;     background-color:#333;     float:left;     overflow:visible; } span.ticket_name{     color:#fff;  } span.team_name{     display: table-cell;     vertical-align: middle; } span.versus{     color:#f00; } 

how go making "ticket name" text centered in "ticket" div spill on "team_1" , "team_2" divs?

thanks in advance!

well make divs absolute , set z-index of ticket greater rest , have wider them well


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -