Click here to Skip to main content
15,894,192 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hey i am working on chat app.
where i have header where photo,username,status is display.
i check in all device it's perfect responsive expect only in ipad and ipad pro.
so what change i do so it's work in all device.
in ipad my name goes to down because it's dynamic and if its 6 char than work proper and
if it more than 6 than it's goes to down below the photo.


name is displaying in
LogInUsernameLbl
lable


What I have tried:

<div style="height: 50px; padding: 1%">
                            <div class="col-sm-8 col-xs-10 heading-avatar">
                                <div class="heading-avatar-icon">
                                    <asp:Image ID="imgUser" runat="server" onerror="this.onerror = null; this.src = '../UploadPhotos/default_user.png';"/>
                                    <p style="display: inline-block; color: white; font-size: 20px; font-weight: 400;" class="statusname">
                                        class="fa fa-circle userstatus" style="color: rgba(0, 255, 0, 1); font-size: 12px" id="LogInUsernameLbl" data-toggle="dropdown"__^</button>
                                        <ul class="dropdown-menu dropdown-menu-right">
                                            <li><a href="#" class="statuschange" data-key='{"param1":"online"}'>^__i class="fa fa-circle" style="color: lime; font-size: 12px">Online</a></li>
                                            <li><a href="#" class="statuschange" data-key='{"param1":"offline"}'>^__i class="fa fa-circle" style="color: red; font-size: 12px">Invisible</a></li>
                                            <li><a href="#" class="statuschange" data-key='{"param1":"busy"}'>^__i class="fa fa-circle" style="color: blue; font-size: 12px">Busy</a></li>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
Posted
Updated 21-Nov-17 21:58pm

1 solution

Hi Jaydeep try this code form CSS file

Hope this helps you.

iPad in portrait & landscape

@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px) { /* STYLES GO HERE */}

iPad in landscape

@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : landscape) { /* STYLES GO HERE */}

iPad in portrait

@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : portrait) { /* STYLES GO HERE */ }
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900