Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 04:12

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

Advertisement



[HELP] News Box

Discussion on [HELP] News Box within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
.NoThx's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 3,146
Received Thanks: 583
[HELP] News Box

Moin ich ahbe ein problem und zwar bin ich dabei einen HP für meinen minecraftserver zu erstellen und ich bekomme es nicht gebacken das sich der mittelteil (hintergrund vom textfeld) der textlänge anpasst


Meine Codes sehen so aus:
content.php
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Home</title>
<link rel="stylesheet" type="text/css" href="main.css" />
</head>
<center>
<div id="contenttop" >
<H1>Topic</H1>
<div align="center">
</div>
<div id="contentmiddel" >
<div align="center">
lol was ist? <br>
lol was ist? <br>
lol was ist? <br>
lol was ist? <br>
lol was ist? <br>
lol was ist? <br>
lol was ist? <br>
lol was ist? <br>
lol was ist? <br>
</div><div id="contentdown" >
<div align="center">
<H9>.<H9>
</div>

</center>
Dazugehörige CSS Daten:
HTML Code:
div#contenttop
  { 
  background:url('textbacktop.png') no-repeat center;
  text-align:center no-repeat;
  }
  div#contentmiddel
  { 
  background:url('textbackmiddel.png') no-repeat center;
  text-align:center no-repeat;
  }
div#contentdown
  { 
  background:url('textbackdown.png') no-repeat center;
  text-align:center no-repeat;
  }
Hoffendlich kann mir wer helfen

Mfg
.NoThx
.NoThx is offline  
Old 05/11/2011, 21:27   #2
 
.NoThx's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 3,146
Received Thanks: 583
Bitte um Hilfe
.NoThx is offline  
Old 05/11/2011, 21:36   #3
 
JacK le chilla's Avatar
 
elite*gold: 2
Join Date: May 2011
Posts: 448
Received Thanks: 110
jo könnte dir helfen melde dich mal in icq 567599 und n thx wäre nicht schlecht
JacK le chilla is offline  
Thanks
1 User
Old 05/11/2011, 22:29   #4
 
.NoThx's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 3,146
Received Thanks: 583
Hmm habe kein icq,ich mag die spammer da ned, hatse kein skype?
und efindet jmd. hier den Fehler?
Code:
<?php
$username = $_POST['username'];
$connectionid  = mysql_connect ('195.82.158.64', 'trtrtrrt', 'rttrtrrt'); 
if (!mysql_select_db ('ms329_1_DB', $connectionid)) 
{ 
  die ('Keine Verbindung zur Datenbank'); 
} 
$sql1 = 'SELECT `playerid` FROM `lb-players` WHERE $username = `playername`';
$playerid = mysql_query ($sql1);
$sql2 = 'SELECT `replaced` FROM `lb-main` WHERE `playerid` = $sql1';
$result = mysql_query ($sql);
echo 'Der Spieler '.$username' hat schon '.$result' Blöcke/Block editiert.';
// Zuerst alle Datensätze löschen um keine Dopplungen zu bekommen. 
?>
.NoThx is offline  
Old 05/12/2011, 15:52   #5
 
JacK le chilla's Avatar
 
elite*gold: 2
Join Date: May 2011
Posts: 448
Received Thanks: 110
^^ machs am besten über ne session also session_start(); $userdetails = array($username, "kpevtlnochwas"); $_session['userdetails'] = $userdetails;
mfg JacK
JacK le chilla is offline  
Old 05/13/2011, 16:52   #6
 
sava's Avatar
 
elite*gold: 1
Join Date: Dec 2006
Posts: 360
Received Thanks: 135
Quote:
div#contenttop
{
background:url('textbacktop.png') no-repeat center;
text-align:center no-repeat;
}
div#contentmiddel
{
background:url('textbackmiddel.png') no-repeat center;
text-align:center no-repeat;
}
div#contentdown
{
background:url('textbackdown.png') no-repeat center;
text-align:center no-repeat;
}
im Css brauchste das div nicht vorran. div#contenttop wird zu #contenttop etc

Wenn sich das hintergrund bild vom content mit erweitern soll dann nimm doch einfach das no-repeat beim background-image raus.... und text-align brauch kein no-repeat
sava is offline  
Old 05/13/2011, 19:19   #7
 
.NoThx's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 3,146
Received Thanks: 583
wenn ich ads no-repeat rausnehme dann ist links und rechts aus irgendeinem grund noch son rand vom bild
.NoThx is offline  
Old 05/15/2011, 20:06   #8
 
sava's Avatar
 
elite*gold: 1
Join Date: Dec 2006
Posts: 360
Received Thanks: 135
nimm am besten für so eine box 3 bilder, einmal das obere mit den runden ecken, dann ein 1 px hintergrund bild (1px in der höhe) was nur die mitte zeigt (dieses bild soll wiederholt werden) und das dritte wäre dann der teil unten wieder mit den runden ecken
sava is offline  
Thanks
1 User
Old 05/16/2011, 19:15   #9
 
JacK le chilla's Avatar
 
elite*gold: 2
Join Date: May 2011
Posts: 448
Received Thanks: 110
habe ihn schon einiges geholfen @NoThx du könntest mal den kompletten quellcode posten und falls du noch fragen hast die einfach drunterschreiben damit nicht immer die selben fragen gelößt werden müssen hier mal der link zu seiner hp damit ihr seht wie weit er gekommen ist soweit ich weiß sollte es die sein

mfg JacK
JacK le chilla is offline  
Thanks
1 User
Old 05/17/2011, 10:17   #10
 
.NoThx's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 3,146
Received Thanks: 583
Hey Ho ich habe schon fast alles fertig.
Und die Hp ist : planetcraft.metwork.org
@hen; werde ich gleich ausprobieren sobalt ich zuhause bin
.NoThx is offline  
Reply




All times are GMT +1. The time now is 04:13.


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