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

  • SEARCH
  • Home
  • 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 7609937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:17:54+00:00 2026-05-31T01:17:54+00:00

I have this and it does everything I want it to, but it seems

  • 0

I have this and it does everything I want it to, but it seems to me there would be a way to do this so that I can control the height of the divs seperately from all of the other identical properties. I just haven’t been able through my searches to find a way that makes sense to me.

Note I am about 3 days into html so if this is over complicated I will learn in steps I understand. I understood style sheets to simplify the process so it seemed like there would be a simpler way.

Thanks

<style type="text/css">
    body
    {

        width:1240px;
        border:solid 1px black  
    }

    .rightline1{float:right;width:618px;height:80px;border:solid 1px black;}
    .rightline2{float:right;width:618px;height:20px;border:solid 1px black;}
    .rightline3{float:right;width:618px;height:20px;border:solid 1px black;}
    .rightline4{float:right;width:618px;height:20px;border:solid 1px black;}
    .rightline5{float:right;width:618px;height:20px;border:solid 1px black;}
    .rightline6{float:right;width:618px;height:20px;border:solid 1px black;}
    .rightline7{float:right;width:618px;height:20px;border:solid 1px black;}
    .rightline8{float:right;width:618px;height:20px;border:solid 1px black;}
    .rightline9{float:right;width:618px;height:20px;border:solid 1px black;}
    .rightline10{float:right;width:618px;height:20px;border:solid 1px black;}
    .rightline11{float:right;width:618px;height:20px;border:solid 1px black;}
    .rightline12{float:right;width:618px;height:20px;border:solid 1px black;}
    .leftline1{float:left;width:618px;height:80px;border:solid 1px black;}
    .leftline2{float:left;width:618px;height:20px;border:solid 1px black;}
    .leftline3{float:left;width:618px;height:20px;border:solid 1px black;}
    .leftline4{float:left;width:618px;height:20px;border:solid 1px black;}
    .leftline5{float:left;width:618px;height:20px;border:solid 1px black;}
    .leftline6{float:left;width:618px;height:20px;border:solid 1px black;}
    .leftline7{float:left;width:618px;height:20px;border:solid 1px black;}
    .leftline8{float:left;width:618px;height:20px;border:solid 1px black;}
    .leftline9{float:left;width:618px;height:20px;border:solid 1px black;}
    .leftline10{float:left;width:618px;height:20px;border:solid 1px black;}
    .leftline11{float:left;width:618px;height:20px;border:solid 1px black;}
    .leftline12{float:left;width:618px;height:20px;border:solid 1px black;}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
    <div class="leftline1"></div>
    <div class="rightline1"></div>
    <div class="leftline2"></div>
    <div class="rightline2"></div>
    <div class="leftline3"></div>
    <div class="rightline3"></div>
    <div class="leftline4"></div>
    <div class="rightline4"></div>
    <div class="leftline5"></div>
    <div class="rightline5"></div>
    <div class="leftline6"></div>
    <div class="rightline6"></div>
    <div class="leftline7"></div>
    <div class="rightline7"></div>
    <div class="leftline8"></div>
    <div class="rightline8"></div>
    <div class="leftline9"></div>
    <div class="rightline9"></div>
    <div class="leftline10"></div>
    <div class="rightline10"></div>
    <div class="leftline11"></div>
    <div class="rightline11"></div>
    <div class="leftline12"></div>
    <div class="rightline12"></div>
</div>
</form>
</body>
  • 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-05-31T01:17:55+00:00Added an answer on May 31, 2026 at 1:17 am

    I see two options:

    1. Create a separate rule with all common styles, and apply to all classes, like this

      .rightline1, .rightline2 (...) .rightLine12 { /* all current rules here */ } 
      

      And then just add a separate rule for a single class when necessary.

    2. Another option (looks better to me): since you can assign any number of classes to an element, just add an extra class for the common styles. Example:

      HTML:

      <p class="rightline rightline1">Lorem ipsum</p>
      

      CSS:

      .rightline { /* all current rules here */ } 
      .rightline1 { width: 200px; }
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this CSS style that does a rounded corners for div border, but
Googling this does little good, as you can imagine. Does anyone have resources that
I have a part of my script that does this: Removes everything in directory
I have this piece of code that does not work: public CartaoCidadao() { InitializeComponent();
I have tried this but it does not work (even if I specify .wav
I have this email sending code that does not show a chooser (good). How
I have this program, but cin in randomly skips.. I mean sometimes it does,
I have a website where I want to use MagicZoom. Everything would be fine
I have this method which does certain checks and applies a color code on
Have this self-made slider: http://jsfiddle.net/wyc3P/4/ What it does: takes min and max values in

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.