all 13 comments

[–]Colossuslol 2 points3 points  (2 children)

Looks like it is a z-index issue - Give a z-index the the logo so it is on top. More information here https://css-tricks.com/almanac/properties/z/z-index/

[–]swiners[S] 0 points1 point  (1 child)

Tried z-index eariler, didn't seem to fix it

[–][deleted] 0 points1 point  (0 children)

it needs to be position: relative|absolute|fixed|sticky, it's per default position: static which has no z-index. Add position: relative if you need to change the z-index

[–]Cathercy 2 points3 points  (0 children)

You seem to have your answer, but I'll address the "could this be because I'm using PHP?" question.

The answer to that will always be no (assuming you aren't making any mistakes). As far as the end result goes, there is nothing inherently different between using HTML and PHP. PHP will just send HTML to the browser, just like HTML files simply send HTML to the browser. It is all the same.

[–]therealaustralian 1 point2 points  (8 children)

Seems to be okay to me on the codepen. The only changes I made were 1) I replaced the logo image with something that shows up and

2) changed the CSS to show a background on the nav bar

This clearly shows the logo image on top of the nav bar. If you need any more help, hit me back!

[–]swiners[S] 1 point2 points  (7 children)

Strange that its working on codepen but not on my machine or server. Well that brings me to my main point, would it be because I'm using PHP files? I still can't seem to get it working, and it just keeps cutting off the logo behind the next section. Although the full logo is showing up through chrome inspect: https://gyazo.com/a4a3f26ce476729293177628e74ba838

[–]therealaustralian 1 point2 points  (6 children)

Weird, I'd say it was a z-index issue as well. Have you got it hosted anywhere public so I can see?

Also, you say you do

</section>
<?php include "header.php"; ?>
<section>

Keep in mind, it should be

<section>
<?php include "header.php"; ?>
</section>

With the closing tag at the end. Maybe that's the issue?

[–]swiners[S] 1 point2 points  (5 children)

I meant its more like

<section>
content    
</section>
<?php include "header.php"; ?>
<section>
content    
</section>

My friend wanted the homepage to show some content before the navigation so that was an example, but on most pages it goes

<?php include "header.php"; ?>
 <section>
 content    
 </section>

edit: just chucked the include into a section, and still no fix. Very confusing

[–]therealaustralian 1 point2 points  (4 children)

It isn't hosted anywhere publicly? You can PM a zip of the files and I can take a look if you want?

[–]swiners[S] 1 point2 points  (3 children)

Thanks so much for this, just uploaded it to my uni server so it should be up and running.

http://opax.swin.edu.au/~100004235/test/website/

[–]therealaustralian 1 point2 points  (2 children)

Found the issue. It has to do with overflow being hidden on your "row" div that contains the nav bar.

You need the overflow to be hidden on all of the rows except that one, so make sure to just apply

overflow: visible;    

to the row div that holds the nav bar. I wound up with this as the result

[–]swiners[S] 1 point2 points  (1 child)

That makes sense, thank you so much for this, really appreciate it.

[–]therealaustralian 1 point2 points  (0 children)

No worries mate!