Win a copy of Get Programming with Java (MEAP only) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

css is acting up  RSS feed

 
Master Rancher
Posts: 933
17
Firefox Browser Hibernate IntelliJ IDE Java MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suddently the css of one of my pages changed, they all use the same cssfile and I haven't specified any other styles on the navbar, yet it's acting up. Anyone a idea what could be causing this?

This is how it looks on the other pages:


This is how it looks on the specific page:


Not that it looks that bad, but it's not verry consistant
 
Marshal
Posts: 67197
169
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Right click on the element, select "Inspect", use DevTools to see what's causing the issue.
 
Daniel Demesmaecker
Master Rancher
Posts: 933
17
Firefox Browser Hibernate IntelliJ IDE Java MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I really have no idea what's going wrong, I copy and pasted the navbar on each page, so the html is the same, I use the same css on each page, and the about page is the only page that difference., while there shouldn't be a reasson.
The top gray border on the about page is the backgroundcolor of the container, so somehow I have a top margin on my about page, I haven't specified it myself and it didn't use to be there eather, suddently it appeared, while I wasn't even working on that specific page...
 
Bear Bibeault
Marshal
Posts: 67197
169
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Bear Bibeault wrote:Right click on the element, select "Inspect", use DevTools to see what's causing the issue.



Otherwise:
 
Daniel Demesmaecker
Master Rancher
Posts: 933
17
Firefox Browser Hibernate IntelliJ IDE Java MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the issue... And was able to correct it.

The div below my header and my header were overlapping, on the div I had a margin of 25px which was showing up above the navbar, why it took so long for the error to show up and why my browser thinks the header is in that div is a mystery to me, but at least it's fixed now
 
When you have exhausted all possibilities, remember this: you haven't - Edison. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!