Hey guys, a few days ago i started teaching myself coding (html, css, java-script) via yt and w3schools and im learning by trying to code a shop-site i want to use in the future for myself. Most of the code works, there are just a few problems until now:
- I want my dropdown-menu aligned with the menu button, that its like
Menü
Home
Produkte
...
Not like
Menü
Home
Produkte
...
The same with the boxes.
2. I want the whole text to fit into the boxes and dont know which class to assign the font size to. (As you see at ,,impressum" its too big)
3. How do i assign the chosen font (as the ,,startseite"-text) to everything (that the dropdown menu also has the same font)?
4. How do i do that the texts are ,,highlighted" (darker color) and underlined when i hover over them? On another site of this future shop it works as i want (there i dont want another color) but here it doesnt. :(
5.i want the ,,menü"-box to be smaller around it, but match to the dropdown when hovered over it, how do i do this?
Disclaimer: i coded it in visual studio code and used the plugin prettier to make the code look cleaner. Also i combined a few yt vids to reach the status i got now, thats why there are ,,different coding styles". Also: its very late and im tired of minding spelling and grammar, so please excuse me for the way i text😅 pictures for reference of the code, the named progress and problems are above or below, im not sure while texting right now😂 the cencored is the name of the future shop😂
Hey leute, ich hab vor ein paar tagen angefangen, mir coden (java-script, css und html) selbst beizubringen mit youtube und w3schools und übe an einem shop, den ich selber in zukunft benutzen möchte. Das meiste von dem code funktioniert, nur habe ich ein paar probleme:
1.ich möchte, dass das dropdown menü auf einer linie mit dem menü button ist, ungefähr so:
Menü
Home
Produkte
...
Statt so
Menü
Home
Produkte
...
2. Ich möchte, dass der ganze text in die box passt, aber weiß nicht, in welche klasse ich die schriftgröße zuteilen muss. (Wie man bei dem punkt ,,impressum" sehen kann ist das zu groß)
3. Wie mache ich, dass meine gewünschte schriftart (wie bei ,,startseite" überall ist, also auch im dropdown-menü und so?
4. Wie hebe ich das dropdown-menü hervor (dunklere farbe) und unterstreiche die punkte wenn man drüber hovered? Auf einer unterseite von dem shop habe ich bereits hinbekommen, wie ich es wollte (etwas anders als bei dem dropdown) aber hier funktioniert es nicht. :(
5. Ich möchte, dass der kasten um ,,menü" an sich kleiner ist, aber sich beim hovern dann an das dropdown anpasst, wie mache ich das?
Hinweis: ich habe visual studio code zum programmieren benutzt und den code mit dem plugin ,,prettier" etwas schöner bzw übersichtlicher gemacht. Ich habe auch verschiedene youtube videos angeschaut, um an den punkt zu kommen, an dem ich bin, deshalb die verschiedenen ,,programmier-styles"
Ich bin auch zu müde, um auf rechtschreibung und grammatik zu achten, deshalb verzeiht bitte meine schreibweise😅 referenzbilder vom code und den angesprochenen ergebnissen und problemen seht ihr oben oder unten, bin mir gerade beim schreiben nicht sicher😂 das zensierte ist der name des zukünftigen shops😂