This is a migrated thread and some comments may be shown as answers.

Custom styling lost when a page is loaded inside a tab view

2 Answers 69 Views
TabStrip (Mobile)
This is a migrated thread and some comments may be shown as answers.
Saurabh
Top achievements
Rank 1
Saurabh asked on 02 Apr 2012, 03:21 PM
How can I retain some of the custom styling I wish to have in my view if loaded within a tabstrip. 
Styles in following code block were lost when loaded from tabstrip, however, they work when loaded separately.
thanks,
Saurabh
<!DOCTYPE html>
<html>
<head>
    <title>River Stage Info</title>
    <style type="text/css">
        dl.RiverStageInfo
        {
            border-style: solid;
        }
         
        .RiverStageInfo dt
        {
            float: left;
            width: 100px;
        }
         
        .RiverStageInfo li
        {
            display: table-cell;
            margin: 5;
            width: 70px;
            border-left-style: solid;
        }
         
        .RowItem ul
        {
            list-style-type: none;
            border-top-style: solid;
            margin: 0;
        }
         
        .CellHeader ul
        {
            margin: 0;
            list-style-type: none;
        }
    </style>
</head>
<body>
    <div data-role="view" id="RiverStage" data-layout="mobile-tabstrip">
        <dl class="RiverStageInfo">
            <dt> </dt>
            <dd class="CellHeader">
                <ul>
                    <li>River Mile</li>
                    <li>Normal Ft</li>
                    <li>Current Ft</li>
                </ul>
            </dd>
            <dt>Coney Island</dt>
            <dd class="RowItem">
                <ul>
                    <li class="RiverMile">459.1</li>
                    <li class="NormalFt">50</li>
                    <li class="CurrentFt">52</li>
                </ul>
            </dd>
            <dt>Island One</dt>
            <dd class="RowItem">
                <ul>
                    <li class="RiverMile">500.1</li>
                    <li class="NormalFt">50</li>
                    <li class="CurrentFt">44</li>
                </ul>
            </dd>
            <dt>Second Island</dt>
            <dd class="RowItem">
                <ul>
                    <li class="RiverMile">200.1</li>
                    <li class="NormalFt">50</li>
                    <li class="CurrentFt">22</li>
                </ul>
            </dd>
        </dl>
    </div>
</body>
</html>

2 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 02 Apr 2012, 03:46 PM
Hi,

Can you try putting the style tag inside the body? Parsing the styles from remote views  is not a documented feature, but it should work. 

Kind regards,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Saurabh
Top achievements
Rank 1
answered on 02 Apr 2012, 05:13 PM
Thanks. Helped.
Tags
TabStrip (Mobile)
Asked by
Saurabh
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Saurabh
Top achievements
Rank 1
Share this question
or