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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T15:16:59+00:00 2026-05-21T15:16:59+00:00

This problem is incredibly hard to describe. I feel like I’ve entered the twilight

  • 0

This problem is incredibly hard to describe. I feel like I’ve entered the twilight zone. However, I’m new to HTML and CSS, and there’s a great chance I’m doing something completely wrong.

I have multiple files in a folder, amongst them are: style.css, homePage.html, and addPerson.php

I’m intending style.css to be an external style sheet to handle both pages. I wrote addPerson.php first and had no problems getting it to work with the external stylesheet. However, once I added the homePage.html file (which is linked to on the addPerson.php webpage), I’m having all sorts of crazy problems. On the left of the page of my addPerson.php page, there is an unordered list of links, stuck on the left using “float”. In my homePage.html file, I want to have this same exact list. Thus, I copied and pasted the code into that file. Here’s what that code looks like:

<body>
    <div class="Links">
    <p>
    Add new content:
    <ul>
    <li><a href="addComments.php">Add comments to movies</a></li>
    <li><a href="addMovieInfo.php">Add movie information</a></li>
    </ul>
    Browse content:
    <ul>
    <li><a href="showActorInfo.php">Actors</a></li>
    <li><a href="showMovieInfo.php">Movies</a></li>
    </ul>
    Search:
    <ul>
    <li><a href="searchActorsOrMovies.php">Search</a></li>
    </ul>
    </p>
    </div>

Here’s what the “Links” class, from style.css looks like that was referenced:

.Links
{
float: left;
background-color:#E6E6E6;
height: 522px;
}

That piece of code makes it so that there’s a list of links with a grey background that runs down the left side of the page. It works just fine in addPerson.php. Here’s a screenshot of that file: http://i1126.photobucket.com/albums/l610/cpatton1027/Screenshot2011-04-25at104256PM.png?t=1303796942

However, when I copy and paste that piece of code into homePage.html, I find that it doesn’t work. Rather, the class reference doesn’t do a thing. It just shows up as an unordered list of links, without the grey background or anything. Thus, homePage.html looks like this: http://i1126.photobucket.com/albums/l610/cpatton1027/Screenshot2011-04-25at104311PM.png?t=1303796993

Thinking that was a little weird, I ran a few tests on homePage.html. I cut down the code to just this:

<body>
    <div class="Links">
    <p>
    Add new content:
    <ul>
    <li><a href="addComments.php">Add comments to movies</a></li>
    <li><a href="addMovieInfo.php">Add movie information</a></li>
    </ul>
    </p>
    </div>
</body>

However, I find that when doing this, things got very strange! Here’s a picture: http://i1126.photobucket.com/albums/l610/cpatton1027/Screenshot2011-04-25at104341PM.png?t=1303797030

That makes no sense at all to me.

I then cut the code down even further, to:

<body>
    <div class="Links">
    <p>
    Add new content:
    <ul>
    <li><a href="addComments.php">Add comments to movies</a></li>
    </ul>
    </p>
    </div>
</body>

Now with this change, it suddenly looked correct. The grey background was there, and the rest of the text was not. Here is what that looked like: http://i1126.photobucket.com/albums/l610/cpatton1027/Screenshot2011-04-25at105119PM.png?t=1303797106

What the heck is going on? Why is the Links class working perfectly in my initial file but horribly in this new file I’m creating? (note: there are a bunch of other weird things that has happened in trying to figure this out, but since I’ve already written a novel I decided to just slim it to this problem).

  • 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-21T15:17:00+00:00Added an answer on May 21, 2026 at 3:17 pm

    I wonder if this was a caching problem? Browsers tend to cache pages rather than going back to the server to fetch them…if you’re updating a page frequently, remember to press Ctrl + F5 to clear the cache and completely re-fetch the page, or else you might think your changes aren’t getting saved.

    If you put the text back in, does homePage.html revert to the non-working version?

    EDIT: Also, of course, it might be a problem with the server not having the right version of the code you are expecting it to have. If you view the source and see that it doesn’t have the HTML you expect it to have, then you’ll need to make sure you are making a request to the right place, and that that place has the right code. This includes HTML, PHP, and CSS pages.

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

Sidebar

Related Questions

This seems like an incredibly simple problem however it isn't working out as trivially
I understand that this problem is incredibly common and I have read through quite
I'm really sorry. This must seem like an incredibly stupid question, but unless I
Hey all of you at Stackoverflow. I got this incredibly annoying problem. I try
This seems like an incredibly simple issue but I have no idea why I'm
Problem This is hard to explain, so please bear with me. I came across
This problem is same as asked in here . Given a list of coins,
This problem seems very simple to me, but I've been unable to fix it,
This problem is caused by my acknowledge of English and jQuery or maybe something
This problem has been bugging me for a long time. For example, the code

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.