How it is possible to make header transparent so slider would be visible behind menu. However I would like header background to be visible on scroll with background-color: #ffffff
How it possible to send logo to the all left and menu to all right like in example behind the link provided below. Now it is somehow boxed?
I can confirm it is 100% safe. I have just uploaded fresh Joomla website in there. Maybe your antivirus does not like .tech websites?
P.S. My antivirus does not give any warnings.
At the moment your slider sits below the header so even if the header was transparent it would still appear white because there is nothing under it to see.
You have a couple of options that I can see. You could make the header position:fixed by default and then the slider would automatically rise up to the top of the viewport. You could then set the headers white background to transparent so that you can see it.
If you wanted it fully transparent then change the 0.6 in the rgba value to zero instead.
The problem with this approach is that if the slider isn’t present on all pages then you may obscure content on those pages. You would need to pad the top of those pages without a slider using 140px padding-top to protect the content from sliding under the menu.
Another approach would be just to drag the slider upwards with a negative margin so that it sits under the menu.
The problem with this approach is that 140px is a ‘magic number’ that matches the height of your header and if header height changes or header text wrapped , or a user zoomed text then that height would not work. However, nothing drastic would happen as its only a slider and would just be a little misplaced in those scenarios.
If you want it full viewport width then you need to use container fluid inside the header and not container.
Thank you very much for your help. I have made an updates according to your suggestions but there are some problems with header. Can you please advice what is possibly wrong?
You seems to have removed the original rules for the fixed header? It is no longer fixed positioned?
You also added !important to the rules which you should not do because that makes it almost impossible to control. At your level you should never use !important. Only once you have a good understanding of CSS can you use !important. In most sites you will never use it and is a sign of a badly coded site.
Remove the important rules and revert the code to this.
Note the rules need to be in that order and as you don’t understand the cascade properly yet you should probably place them at the end of the last css file you are calling.
If you do that correctly the page will look like this when you have scrolled:
Thanks for great tips! I am just starting. Ok, now I know that I should get rid of using !important. Now everything works except that logo is not visible on the right and also there is no background behind menu although it is set as I understand, why is so?
Here it set to be white and transparent but there is no background visible:
Yes its behind the slider. You need a stacking context (which was in place before) and you need to add position:relative and z-index to the initial state of the header.
The problem is that you are placing styles out of order in your css files. I have attached an image with the web inspector open (right side of image) and you can see that there is rule for the #sp-header in default.css which is over-riding anything in template css. (the rules nearer the top are the ones being applied assuming they aren’t crossed out in the web inspector.)
I suggest you just paste the code I gave you at the end of the default.css file and it will work as my screenshot where I have injected code into the live layout at the end of the css, You can see the code I added on the left side of the screen and this is live CSS editor plugin for chrome which is how I test live to make sure code I offer will work if placed correctly:)