Hello, i am exhausted working on my website. I need someone to help me get a better understanding of html, css and dom relations with php.
i was always a table guy. i never learned css 2 and css 3 until last year. I started making my website with tables again. I decided to try to understand divs and site layout. I made a decent layout that i was happy with. However, i use nested divs to contain my content in a middle section of the page. I like this layout but the browser doesn’t scroll when the div content is greater than the height of the window. So i created a div just after the body tag that acts as a css body tag. I used overflow hidden on the body tag and overflow-y scroll on my div. It seems to work. My site looks fine until yesterday.
i am trying to make template files which are php include files. include, header, content, footer which is all html code. My files are typically the same except for content and breadcrumb titles/links. I tried to make the templates work but now my pages are falling to pieces. My copyright div is now overlapping the scroll bar and my javascript is not functioning. I see a ‘dom is no longet attached’ message from edge browser, thus i think that my javascript is not attached to the dom. I think that this may happen when i break up my html into included parts using php. Still, maybe my html/css design is not valid or i am not doing something correctly.
any thoughts about this problem? i don’t want to redesign my site. I have spent six months getting it made. My biggest problem is the css body and the scroll bar not appearing, plus the php inclusion is breaking my dom and javascript. I could use some advice about this subject.
Thank you.