Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 17:32

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[HOW TO][HTML+CSS] Shadow-Lifting

Discussion on [HOW TO][HTML+CSS] Shadow-Lifting within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 1
Join Date: May 2011
Posts: 203
Received Thanks: 50
[HOW TO][HTML+CSS] Shadow-Lifting

Hallo,
viele hatten mich mal gefragt, wie man so einen schönen "Lift-Schatten" hinbekommen würde, da wollte ich hier mal ein kleines Tutorial machen, wie man das ganze in ca. 5Minuten hinbekommt

So soll es am ende Aussehen:

gesammt Quellcode:

Was man braucht:
  • Bild
  • 3Divs

Als erstes machen wir einen div, wo das Bild und die anderne Div's drin sind z.B. #page.

also schaut unser Code mittlerweile so aus:
HTML Code:
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title></title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width">
    </head>
    <body>
	<div id="page">

	</div>
	</body>
</html>
in dem DIV #page fügen wir noch 2 weitere divs (Shatten-Links/Schatten-Rechts) und das Bild hinzu.

unser Code müsste dann in etwa so aussehen:
HTML Code:
	<div id="page">
		<div class="img">
			<img src="walle.jpg" alt="Wall-E" />
			<div class="left"></div>
			<div class="right"></div>
		</div>
	</div>
dann geben wir den noch diese CSS-Eigenschaften:

Code:
			#page { width:618px; margin:0 auto; }
			#page img { width:100%; }
			.left { bottom: 14px; box-shadow: 0 0 10px 6px #000000; height: 0; left: 12px; position: relative; transform: rotate(-4deg); width: 50%; z-index: -10; }
			.right { bottom: 14px; box-shadow: 0 0 10px 6px #000000; height: 0; position: relative; right: -300px; transform: rotate(4deg); width: 50%; z-index: -10; }
wenn die bei euch nicht ganz so gut passen, etwas mit den positionen left, right, bottom spielen

MfG ~Evolutio
Evolutio is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
(B) Shadow 394 (S) look in
03/14/2012 - World of Warcraft Trading - 0 Replies
Hallo, biete hier mein shadow priest 394 ilvl. ich suche alles gleichwertiges am liebsten ein ele shamy. bei fragen einfach denniz19942 bei skype adden und los XD
[Joomla][HTML] modul in einer html datei verlinken?
11/11/2011 - Web Development - 1 Replies
ich hab vorher im joomla forum schon ein thread geöffnet aber da antwortet mir niemand und ich ich langsam keine gedult mehr.. will heute noch weiter probieren und so. ---------------------------------------- Bei den Modulen gibt es ein leeres, wo man ein editor hat. Ist es möglich eine verlinkung zum modul in der html zu machen? Hier ein beispiel vom aufbau meiner website: Vorstellung wie die website ungefähr sein soll, wo ich welche div container gemacht habe, wie das ganze zur zeit...
Star Trek Online Downtime and Lifting of the Level Cap
01/21/2010 - Gaming News - EN - 0 Replies
The Star Trek Online open beta servers have been brought down for emergency maintenance. The servers came down at 7pm PST and the downtime is expected to last no more than 2 hours. On a positive note, when the servers come back up the level cap will be removed and players will be free to start warping into higher levels. Emergency Maintenance (January 20, 2010) - Star Trek Online Forums
[HTML]HELP[/HTML]range hack and skill speed in extreme
08/21/2009 - Dekaron Private Server - 5 Replies
hey guys i need a little help about range hack and skill speed in extreme i already unpack the Data its all done..1! my problem is wer i can edit the range ang skill speed in extreme..! pls :):):):):)



All times are GMT +1. The time now is 17:33.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.