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 8264297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:24:20+00:00 2026-06-08T04:24:20+00:00

Is there something that will have the logical effect of adding the inline position

  • 0

Is there something that will have the logical effect of adding the inline position tags for each of a multitude of absolute elements while defining all of the other style elements in a CSS file or style elements in the section of the page? Simply having a <div id="divIDname" style="left:100px;top:40px;"> doesn’t seem to be valid but the logic of having the small inline style append/override the ‘CSS ID’ style elements is what I am looking to achieve.

I am making a day planner for an aviation booking tracking system type layout and have broken up 17 hours of the day into elements representing 15 minute blocks, times by multiple aircraft (each A/C on it’s own line). I have made each one an absolute reference inside a single parent to ease placement on the page of the planner as a whole.

I am going to layer the actual bookings as higher layered elements over this planner so as such I need to know exactly where each of the 15 minute elements is located within the parent element. To this end I have placed each planner 15 minute element using absolute positioning (coordinates constructed mathematically and html generated within PHP loops, etc).

My problem becomes how to apply different border styles and :hover pseudo-classes to the elements without defining an individual CSS style for each and every 15 minute block element simply because each has it’s own unique left and top attributes. I am using inline styles for it as a workaround, but the HTML output and readability of the PHP code makes it hard to troubleshoot logic errors in my PHP scripts due sheer volume of output, and I can’t apply the :hover pseudo-class inline either, and as aircraft are added and removed from the list, the number of lines (and thus 15 minute block elements) will change as new rows are added or removed.

Server is a simple WAMP implementation with no jscript or other programming scripts other than PHP.

I’m not a seasoned programmer, just took on a fairly challenging project to try to re-learn and build on my sketchy HTML & PHP knowledge so please be gentle with the answers… 🙂

Any help would be greatly appreciated.

Regards

Braedon King,
Townsville, Australia

  • 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-08T04:24:23+00:00Added an answer on June 8, 2026 at 4:24 am

    The simple answer seems to be inline style extends css classes, and doesn’t work with ID type css styles. Using class instead of id seems to have done the trick.

    <div class="xyz" style="left: 100px; top:100px;">. Works

    <div id="xyz" style="left: 100px; top:100px;">. Doesn’t work.

    Thanks all for the responses that lead me to that.

    Regards

    Braedon

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

Sidebar

Related Questions

math.h is not really a documentation. Is there something else that will describe these
I'm hoping there's a way in a config file or something that will allow
Is there a git find analogue of git grep , i.e., something that will
Is there a third party tool or something similar that will allow users to
I'm beginning and there is something that I don't understand with pointers. I have
I have a logical statement that says If everyone plays the game, we will
Is there something that I can use that will quickly merge multiple CSS imports
cgi.escape seems like one possible choice. Does it work well? Is there something that
There is something that I really don't understand with the HttpListener. The code below
there is something that I miss about the cc-NUMA architecture and the need to

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.