Hello Frens I need such css code which could keep div center according to windows height and width. Should be flexible in every resolution.In every resolution the div should be center vertically and horizontally.Pure CSS Code No any table.
Please Help meeeee
:thumbsup: :thumbsup: :thumbsup:
Have a look there
You'll use the display:table
You'll use the display:table and table-cell properties for that but you'll need a fix for IE that involves an extra element that you shift down by 50% and then drag back it's child by a negative 50% amount to find the vertical center.
Googling on 'css vertical centering' or searching the forum will throw up guides to follow.
Thanks DanA it works but...
Thanks DanA it works but it doesnot work in text.
Could U please give me some more hint
No I think you will need to
No I think you will need to give us more hint! how about actually explaining what your doing and what code you're working with rather than have us just explain various generic approaches to vertical centering.
As per your infromation
What ever the computer resolution
that shouldnot effect the design
Css Code goes as below
Re-read my post then look
Re-read my post then look and read carefully the links DanA supplied especially the first one and follow any sub links that you may find to other examples, as things look from your code you haven't tried many tricks to center things, 100% height won't do it
Thanks Hugo and DanA
I hadnot watch carefully the link of DanA So, I couldnot got my answer.But now I got my answer.
:rolleyes: :rolleyes: :rolleyes: :rolleyes: :rolleyes: