Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8631355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:12:29+00:00 2026-06-12T09:12:29+00:00

I have a web page that uses the following code: <!DOCTYPE html> <html style=height:

  • 0

I have a web page that uses the following code:

<!DOCTYPE html>

<html style="height: 100%; margin: 0; padding: 0; color: #FFF;">
<head>
  <meta name="viewport" content="width=device-width" />
  <title>Index</title>

  <style type="text/css">                
    #content { height: 100%; overflow: hidden; background: white; }
    #header { float: left; width: 100%; background-color:silver; padding:8px 4px;}

    .tabItem { padding:15px; border:1px solid #ccc; background-color:blue; top:0; left:0; }
  </style>

  <script src="/Scripts/modernizr-2.5.3.js"></script>
  <script src="/Scripts/jquery-1.7.1.js"></script>
  <script src="/Scripts/jquery.cycle.all.js"></script>
</head>

<body style="height: 100%; margin: 0; padding: 0; color: #FFF;">

<div id="content">
    <div id="header">
        <a href="#" onclick="showTab(0);">Tab 1</a> | 
        <a href="#" onclick="showTab(1);">Tab 2</a> | 
    </div>

    <div id="tabItems">
        <div id="tabItem1" class="tabItem">
            <h2>Tab Content Number 1</h2>
        </div>

        <div id="tabItem2" class="tabItem">
            <h2>Tab Content Number 2</h2>
        </div>
    </div>
</div>

    <script type="text/javascript">
        $(document).ready(function () {
            $('#tabItems').cycle({
                fx: 'scrollDown',
                next: '#next',
                prev: '#prev',
                timeout: 0
            });
        });

        function showTab(tn) {
            $('#tabItems').cycle(tn);
            return false;
        }
    </script>
</body>
</html>

Somehow, I need to make each .tabItem the width and height of the available real-estate. Unfortunately, I CANNOT set the height of the tabItems div. The reason why is because the plugin I’m using (Cycle), doesn’t seem to work when I set the height of the tabItems div. Weird. Because of that, I’m trying to figure out a way around that.

Does anyone know how I can make a .tabItem item the width/height of the available real-estate, without setting the height of the tabItems element?

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T09:12:30+00:00Added an answer on June 12, 2026 at 9:12 am

    There are a couple things to consider. Are you trying to set height by %? If so, that will only work if the parent element has an explicit height.

    Also…
    In CSS you can set the top, right, bottom, and left properties of an element to 0px, and it will touch all the borders of it’s parent.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web page that uses cross page posting to post to a
I have a web page that uses three controls to allow a user to
I have a web page that uses jquery ajax to grab the table markup
I have made a web application that uses master page for Login & Logout
I have a page that uses jQuery tabs to tabify a set of HTML
new on rails and using windows for now,, i have web page that user
I have web forms page that has 2 controls. A gridview and an associated
I have a web page that prompts for user input via DropDownLists in some
I have a web page that whenever your in a text-field, if you hit
I am using ColdFusion 9.0.1. I have a new web site that uses Bikes.cfm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.