webForumDet fria alternativet

Behöver hjälp igen med css..

3 svar · 286 visningar · startad av Tulork

TulorkMedlem sedan aug. 2004903 inlägg
#1

Har problem med ett par skoluppgifter. Såhär lyder uppgifterna.

8. Use span to mark a few important words that should normally appear red but when the mouse pointer hovers above, one word should change both background and foreground colour, the other should be bold and increase in size by a factor 1.5.
9. Place a darkred square at the top left of the page. Then make stay there even if the page is scrolled.
10. Place two images over the text and partially over each other on the page. Then change the settings such that one image appears behind the text and the other in front of the text.
11. Use the "display"-attribute to create a header h2, where the paragraph text continues directly after the header text. Then make the in-line element code to a block element and using the Courier font for the text.

Jag har pillat med detta i ett par dagar, men det verkar som om att jag inte kommer hitta en lösning där jag gör det i css.....

Någom som har lust/vill hjälpa mig med detta?

nitro2k01Medlem sedan aug. 20039 342 inlägg
#2

Lite ledtrådar/gissningar:
8: .klassnamn:hover {...}
9: position: fixed;
10: z-index: -1; z-index: 2;
11: display: inline;

Förvänta dig dock inte att allt ska funka i IE...

tantenMedlem sedan nov. 20051 596 inlägg
#3

Eftersom du måste använda en länk får att hover ska fungera med IE så tror jag du kan få en del tips på denna sida, scrolla t.ex ner till step 4 .
en css-sida

TulorkMedlem sedan aug. 2004903 inlägg
#4

nitro, det va en miss av mig. den första av uppgifterna har jag redan gjort. men tack för det andra.

142 ms totalt · 3 externa anrop · v20260731065814-full.30151723
0 ms — hämta forumlista (cache)
0 ms — hämta statistik (cache)
139 ms — hämta tråd, inlägg och bilagor (db)