Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 00:25

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

Advertisement



[HTML/CSS]Bild als Inputfeld!

Discussion on [HTML/CSS]Bild als Inputfeld! within the Web Development forum part of the Coders Den category.

Reply
 
Old 01/12/2013, 08:41   #16
 
elite*gold: 0
Join Date: May 2012
Posts: 601
Received Thanks: 131
Ja ich weiß.. Unsaubere weiße.. Jedoch hab ich 0 Plan wie das mit CSS geht.
.0nLy is offline  
Old 01/12/2013, 12:13   #17
 
NotEnoughForYou's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 3,407
Received Thanks: 2,024
in Css wäre das einfach

Variante 1. externes stylesheet

deine style.css:

Code:
input[type="text"], input[type="password"] {
    border:none;
    background:url("img/bg.png") no-repeat; 
    width:50px;
    height:20px;
    outline:none;
}
und in deiner index.html im <head>
Code:
<link rel="stylesheet" type="text/css" href="style.css" />
Variante 2. im <head> direkt
Code:
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
input[type="text"], input[type="password"] {
    border:none;
    background:url("img/bg.png") no-repeat; 
    width:50px;
    height:20px;
    outline:none;
}
</style>
</head>
<body>
</body>
</html>
sind natürlich alles fiktive Werte.
NotEnoughForYou is offline  
Thanks
1 User
Old 01/12/2013, 13:53   #18
 
galaxyo's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 425
Received Thanks: 183
Quote:
Originally Posted by NotEnoughForYou View Post
in Css wäre das einfach

Variante 1. externes stylesheet

deine style.css:

Code:
input[type="text"], input[type="password"] {
    border:none;
    background:url("img/bg.png") no-repeat; 
    width:50px;
    height:20px;
    outline:none;
}
und in deiner index.html im <head>
Code:
<link rel="stylesheet" type="text/css" href="style.css" />
Variante 2. im <head> direkt
Code:
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
input[type="text"], input[type="password"] {
    border:none;
    background:url("img/bg.png") no-repeat; 
    width:50px;
    height:20px;
    outline:none;
}
</style>
</head>
<body>
</body>
</html>
sind natürlich alles fiktive Werte.
Dazu ist noch wichtig zu sagen, mit welcher Priorität die Styles gehandhabt werden.

Priorität sieht folgendermaßen aus:

Inline > Head > Extern

Das bedeutet: Alles was man innerhalb eines HTML-Tags an Stylesheets übergibt wird mit der höchsten Priorität betrachtet. Danach kommen dann die Stylesheets im <head></head> - Bereich. Diese werden gegenüber den externen Stylesheets bevorzugt.

Sinnvollerweise poste ich dazu noch einen Link der die ganze Thematik weiter vertieft:




Gruß,
galaxyo
galaxyo is offline  
Old 01/12/2013, 14:37   #19
 
elite*gold: 0
Join Date: May 2012
Posts: 601
Received Thanks: 131
Danke!
.0nLy is offline  
Reply


Similar Threads Similar Threads
Text auf Bild schreiben ! HTML
04/02/2013 - Web Development - 9 Replies
Hey , ich hab mal eine Frage : Wie kann ich einen Text auf ein Bild schreiben für eine Homepage. Also ich habe die Bilder jetzt an die richtige Stelle verschoben damit das Design und so passt. Wie kann ich nun auf die Bilder z.B. bg2.gif/png/jpg... einen Text schreiben wie z.B. ,,Hier kommen später Downloads rein." Für die die es nicht verstanden haben ! Bild :
HTML - Verlinkung mit Bild + Mouseover
09/04/2012 - Web Development - 14 Replies
Wie waren die Befehle für eine Verlinkung mit einem Bild und Mouseover in HTML zb. <a href="skyvodka.html"> <img src="abc.png"> mouseover blabla?
[Php / HTML]Bild Rand problem!
12/22/2010 - Web Development - 10 Replies
Hallo Community, ich hab mir heute ein Spanisches CMS für meinen Privat Server gedownloaded, ich war ganz davon begeistert!! Jedoch ist mir etwas total ins Augegestochen, die Bilder die dort eingefügt werden sind mit einem Rand verzehrt Screen: http://img811.imageshack.us/img811/3708/unbenannt ky.png Hier, ich habs auch schon im Netz:
html/ bild in % größe?
11/08/2010 - Web Development - 3 Replies
huhu ich hab mit html ne hp mal coden wollen leider hab ich immer das selbe problem das bild ist bei jedem pc anders... also von der größe da ich es ja mit pixel angeben musste.... kann man die bilder auch in % angeben? wenn ja wie finde da irgendwie nix ( ich kann auch nicht gescheit googeln^^, also helft mir pls xD)
[HTML]Bild in die Mitte.
02/19/2010 - Metin2 Private Server - 8 Replies
Hallo liebe Community, ich habe eine Frage,ich habe bei meiner Homepage zurzeit Warungsarbeiten und dann wollte ich sowas machen. Aber wie bekomme ich das Bild in die Mitte? Der code jetzt ist: <IMG SRC="http://img442.imageshack.us/img442/8656/ 89823310.png">



All times are GMT +2. The time now is 00:25.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.