Domanda

I have a table with three columns, the first column takes an image, the second takes a heading label and third is very small and is empty. The Heading label in second column is being centered to the center of the column but what I want is to center it in the middle of the screen at the same height it is present at. I used jquery window width but couldn't attain the result required. The heading label is made up of two labels. please help....!

È stato utile?

Soluzione

Why you use table.Insted of table use divs.Here i paste the code for that

you want to align the center of <div id="myDiv"></div> to the center of <span id="mySpan"></span> write

 $("#myDiv").align({left:{my:0.5,at:0.5, selector:'#mySpan'}, top:{my:0.5,at:0.5, selector:'#mySpan'}}); 
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top