But I still want the yellow “booking” link to be visible between the logo and the image, but not the others. They can be but in a “dropdown” menu in one of the corners.
But another issue showet up, while editing the layout for the desktop version.
I removed the boarder around the “Kontakt/Booking” item, and now the logo is suddently pushed to the right, and I have no idea.
Feels like I´ve tried “everything”.
The basic principles for both HTML and CSS are so easy to pick.
That’s why it is so easy to overlook.
Hence while I know those principles I end up myself looking up MDN quite frequently to understand any situation I face.
The killer tip I could give is become a good friend of the debug tools to understand your problem.
Ctrl+⇧+C will help you understand the structure of your code and why it is behaving the way it does. (Yes I note you know the tool as a screenshot testifies.)
For the little story when I tried to solve your problem yesterday I tried different solutions because my 1st attempt was not working the way I wanted. The media query did not make the “not-on-mobile” part (Hence de !important). Structurally too I did a few tries.
I am no wizard. I cannot guess how your code looks at the moment for you made changes since the last time. Also putting it here is nicer for anyone trying to help because that’s simpler to pick and try things. Screenshot would force one to type the code on their own. Help people help you.
It seems there are parts you don’t wanna share and that is perfectly fine. Then copy/paste your code in an editor and do the replacements there. For instance a useless link can be replaced by a # just like the other links.
Also HTML is very permissive. It displays content while you did not respect its syntax.
And looking again at your screenshots I think there are inconsistencies. You missed a closing </div> tag, I believe, in the part with your logo (according to the screenshot you shared).
I´ve moved the inline-style over to the CSS-sheet. Don`t know why it was in there in the firs place, but thanks!
The reason I don`t share my whole code, is because a guy told me it was´nt that smart, to give away my code, for some reason, so I thought people did´nt do that. I got no problem sharing my whole code. It probably make you guys shiver anyway
The
at the bottom is to “close in” the footer. (Picture)
It is up to you to decide what part of your code is sensitive to share or not.
Sure if you’re up to develop a killer algorithm in your field it is understandable you don’t want to share your code. Then when you need help on some code you should try to prepare a sample concept code that is OK to share.
Now we are talking HTML, especially pretty basic HTML. Anyone will be able to see it anyways when it is live.
In your first post setting display: none will remove the the element from the normal flow of the document. I think the issue was the media query was using a comparison operator to check the size of the screen, like > < =. None of those are allowed. You seemed to fix this later in the mark up by using max-width, min-width, or width.
Sharing your code, for the front end of an application is not that big of a deal. Your website is going to be viewed on a client device, to do this the client will need to download all the resources needed to the client, so all your markup, css and js for the front-end will be viewable through the browser. Back-end is a little more precious and you should be careful about that.
You should start a new thread for each unrelated question. This will help people find your question, as well as help other users who try to search for related issues and resolutions to what they have.
There is nothing wrong with sharing your code in code blocks like you did above. I would recommend that you try sharing them with free online editor like https://codepen.io/ or https://jsfiddle.net/. You can simply copy and paste your code into one of those and copy a share link, that you can paste here. It just keeps people from having to set up an environment on their machine, and paste all your code. They can simply click the link and start testing right away. When they edit the code in the link it will create a copy for them, so they can work without changing yours. Then they can share a fix with you in the same manner. Makes life a little easier.
You are perfectly correct and it should work.
Did you check the CSS dev tools?
Do you see your style strikethrough?
It is likely conflicting with another style.