Page 1 of 1

Any help with html and css?

Posted: Mon Aug 08, 2022 8:11 am
by doctorized
I am not a pro at web pages. I am helping a group to make their home page. The have almost zero income and they can't afford a pro to help them. I managed to create a page with two vertical divs, the first one holds the menu and the second one the page content according to user’s request. Those two divs must have the same height so the page will look nice. I managed to solve it. Now I have a serious problem and I can’t figure out what is missing. As you may see in the example that I post, the text in the second div appears much lower than it should be, leaving a big white area above it. No matter what I tried to fix it failed. Is there anyone who can help? Or do you know a forum that can actually help? I tried to ask for help at stackoverflow, they marked my question as duplicate as some other guy with a different code had a similar problem and, off course, the solution in his problem does not solve mine.
The code is here.

Re: Any help with html and css?

Posted: Mon Aug 08, 2022 5:26 pm
by normeus
doctorized ,
Try to get rid of inline style. It will make it easier to figure out where styles come from. On any modern browser press F12 and you'll see how each element is being modified.

For your current problem, in your style.css:

getting rid of "clear: both;" in this section will fix the 2nd div problem

Code: Select all

.navigation:after {
  content: '';
  display: table;
 /* clear: both; */
}
Norm.

Re: Any help with html and css?

Posted: Wed Sep 14, 2022 12:11 am
by netmaestro
I've found W3 Schools to be a very valuable resource for learning and debugging html, css, javascript and php. And it's free.