Hallo, Gast! (Registrieren)

Wir wünschen allen Besuchern frohe Ostern!

Letzte Ankündigung: MyBB 1.8.37 veröffentlicht (04.11.23)


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste
Zitatfehler
#11
(22.02.2011, 10:01)Corleone schrieb: Mit dem neuen Update 1.6.2 alles wieder OK.
D.h. alles hat sich erledigt?

Gruß,
Michael
[Bild: banner.png]
Support erfolgt NUR im Forum!
Bitte gelöste Themen als "erledigt" markieren.
Beiträge mit mangelhafter Rechtschreibung/Grammatik werden kommentarlos gelöscht.
#12
Ja,das mit den Umlauten,hat sich erledigt,nach dem neuen Update.
Wüsste aber gerne noch,wo ich den Codeblock,also die weite des Blocks anpassen kann.
#13
Bearbeite die Datei global.css deines Themes im fortgeschrittenen Modus und suche dort nach

Code:
.codeblock {

background : #fff;
border : 1px solid #ccc;
padding : 4px;
}

.codeblock .title {

border-bottom : 1px solid #4874a3;
margin : 4px 0;
color : #4874a3;
text-decoration : none;
font-style : normal;
font-weight : bold;
font-size : 12px;
line-height : 1.2em;
font-weight : bold;
}

.codeblock code {

color : #3a3a3a;
overflow : auto;
height : auto;
max-height : 200px;
display : block;
border : 1px solid #4874a3;
margin : 1px auto 1px auto;
padding : 1px;
white-space : nowrap;
overflow : auto;
font-family : Monaco, Consolas, Courier, monospace;
font-size : 13px;
}

Ersetze das durch

Code:
.codeblock, .phpcodeblock {
background : #fff;
border : 1px solid #ccc;
padding : 4px;
}

.codeblock .title, .phpcodeblock .title {
border-bottom : 1px solid #4874a3;
margin : 4px 0;
color : #4874a3;
text-decoration : none;
font-style : normal;
font-weight : bold;
font-size : 12px;
line-height : 1.2em;
font-weight : bold;
}

.codeblock code, .phpcodeblock code {
color : #3a3a3a;
overflow : auto;
height : auto;
max-height : 200px;
max-width : 700px;
display : block;
border : 1px solid #4874a3;
margin : 1px auto 1px auto;
padding : 1px;
white-space : nowrap;
overflow : auto;
font-family : Monaco, Consolas, Courier, monospace;
font-size : 13px;
}

Dies stellt zunächst sicher, dass beim Einfügen von Code und PHP-Code die gleichen Einstellungen verwendet werden. Die gewünschte Breite kannst du dann im letzten Abschnitt bei max-width festlegen.
 
The User, Formerly Known As "En-Gedi"
 
#14
Habe da doch noch nen Problem.
Siehe anhang,die gestrichelten linien sollen weg,steht alles über.

Hier der Code den ich benutze.

Code:
.codeblock, .phpcodeblock {
background : #fff;
border : 1px solid #ccc;
padding : 4px;
}

.codeblock .title, .phpcodeblock .title {
border-bottom : 1px solid #4874a3;
margin : 4px 0;
color : #4874a3;
text-decoration : none;
font-style : normal;
font-weight : bold;
font-size : 12px;
line-height : 1.2em;
font-weight : bold;
}

.codeblock code, .phpcodeblock code {
color : #3a3a3a;
overflow : auto;
height : auto;
max-height : 200px;
max-width : 100%;
display : block;
border : 1px solid #4874a3;
margin : 1px auto 1px auto;
padding : 1px;
white-space : nowrap;
overflow : auto;
font-family : Monaco, Consolas, Courier, monospace;
font-size : 13px;
}

Hmm,weiß nich mehr weiter,kann mir da einer Helfen?
Dies betrifft nur ein PHP Code,wenn ich ihn einfüge.
also das mit der unteren gestrichelten linie,habe ich weg bekommen,aber das es weiter nach rechts zieht,is immer noch und nur beim php code.
SO,nach langen rum fummeln,hab ich es hinbekommen.


Angehängte Dateien Thumbnail(s)
   
#15
Guten Abend zusammen,

also es besteht ein Problem mit meiner Code/PHPbox und zwar,kann man wie oben im Thumbnail sehen,das diese nach rechts über den #Container geht,alles andere passt sich genau der Browsergröße an.
Hier mal mein code hierzu.

PHP-Code:
.codeblock, .phpcodeblock {
background #fff;
border #ccc solid 1px;
padding 4px;
}

.
codeblock .title, .phpcodeblock .title {
color #4874a3;
border-bottom 1px solid #4874a3;
margin 4px 0;
line-height 1.2em;
text-decoration none;
font-size 12px;
font-style normal;
font-weight bold;
}

.
codeblock code, .phpcodeblock code {
color #3a3a3a;
overflow auto;
height auto;
max-height 200px;
max-width 100%;
display block;
border #4874a3 solid 1px;
margin 1px auto 1px auto;
padding 1px;
white-space nowrap;
font-family MonacoConsolasCouriermonospace;
font-size 13px;


ich hatte schon mit pxeln gearbeitet sprich ne weite von 200 usw angegeben.
Wie gesagt alles wird,wenn ich mein browser minimiere dem fenster angepasst,ausser halt dieser codeblock.
#16
Mach im ".codeblock code" nicht "max-width : 100%;", sondern deine Breite deiner Seite rein.

ZB: max-width : 800px;

dann sollte es gehen.
Mit freundlichen Grüßen

MrBrechreiz
#17
Guten Morgen,
aber dies klappt ja auch mit den Zitaten,das ja das komische und weiß nich,wo der fehler liegt =(

dies hatte ich auch schon versucht.