HTML, JavaScript, AJAX, jQuery, CSS, Bootstrap, LESS Probleme mit HTML5, Bootstrap oder jQuery ? |
 |

18-10-2017, 13:51
|
sanktusm
Registrierter Benutzer
|
|
Registriert seit: Aug 2005
Beiträge: 661
|
|
css mit nth-of-type geht nicht
Ich möchte einen Layer mit der Klasse .text ansprechen. Wenn ich nth-of-type(2) eingebe wird ein Feld formatiert. Doch wenn ich nth-of-type(3) eingebe wird kein Feld mehr adressiert. Hat mir jemand einen Tipp.
PHP-Code:
<form action="index.php?id=152&forms_type=template_concept&form_id=13template=forum" method="POST" enctype="multipart/form-data" id="submitForm_13">
<div class="tableHeader">
<div class="text_label">Titel:</div>
<div class="text"><input type="text" class="Titel" value="" name="titel" required></div>
<div class="MyWordsTinySpacer"></div>
<div class="text_label">Frage / Problem:</div>
<div class="text"><textarea class="forumtextarea" name="frage___problem" style="width: 180px; height: 100px; border: solid 1px #71A305; float: left;" required></textarea></div>
<div class="MyWordsTinySpacer"></div>
<div class="text_label">Schlüsselwort</div>
<div class="text"><input type="text" class="Schlüsselwort" value="" name="schluesselwort[]" >
<div class="MyWordsMultipleLayer"><div class="add_multiple">+</div> <div class="delete_multiple">-</div></div>
<div class="MyWordsTinySpacer"></div></div><div class="MyWordsTinySpacer"></div></div>
<div class="MyWordsSpacer"></div>
<div class="clearfix-20"></div>
<div class="tableRows"></div><div class="submit"><input type="submit"></div></form> <div class="clearfix-50"></div>
PHP-Code:
#submitForm_13 .tableHeader div {
display: block;
}
#submitForm_13 .a_title_text {
display: none;
}
#submitForm_13 .text_label {
color: #FFF;
}
#submitForm_13 .tableRows {
display: block;
}
#submitForm_13 .submit {
margin: 20px 0 0 201px;
clear: both;
}
#submitForm_13 .tableHeader .text:nth-of-type(2) {
min-width: 500px!important;
}
#submitForm_13 .forumtextarea {
max-width: 90%!important;
min-height: 300px;
}
#submitForm_13 .text_label {
display: block!important;
}
.MyWordsTinySpacer {
clear: both;
height: 5px;
}
|

18-10-2017, 19:39
|
Kropff
  Administrator
|
|
Registriert seit: Mar 2002
Ort: Köln
Beiträge: 11.804
|
|
nth-of-type bezieht sich auf HTML-Selektoren, nicht auf Klassen. Was du suchst ist nth-child.
Gruß
Peter
__________________
Nukular, das Wort ist N-u-k-u-l-a-r (Homer Simpson)
Meine Seite
|
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
|
|
Ähnliche Themen
|
Thema |
Autor |
Forum |
Antworten |
Letzter Beitrag |
CSS-Weiche für IE geht nicht
|
tattooz |
HTML, JavaScript, AJAX, jQuery, CSS, Bootstrap, LESS |
25 |
02-12-2008 11:40 |
css in php geht irgendwie nicht....
|
speicher |
PHP Developer Forum |
3 |
05-07-2004 12:02 |
input, textarea per CSS definieren aber nicht type=submit
|
westberlin |
HTML, JavaScript, AJAX, jQuery, CSS, Bootstrap, LESS |
9 |
04-10-2003 13:21 |
Tabelle mit CSS geht nicht?
|
Imion |
HTML, JavaScript, AJAX, jQuery, CSS, Bootstrap, LESS |
2 |
07-03-2003 09:51 |
Schriftart über css geht nicht
|
Bigwill |
HTML, JavaScript, AJAX, jQuery, CSS, Bootstrap, LESS |
9 |
06-01-2003 21:29 |
Themen-Optionen |
|
Thema bewerten |
|
Forumregeln
|
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.
HTML-Code ist aus.
|
|
|
|
PHP News
|