Problem mit Text "umbruch"

Status
Nicht offen für weitere Antworten.

MasterDiablo

Mitglied
Ich habe in meinen Arkordion Menü ein Bildchen drine und ich möchte gerne das der Text neben dem Bild steht und sich dann eben weiter bricht!
Das ganze lese ich aus einer xml Datei aus.Ich würde aber auch gerne wissen wie ich in meiner XML Datei einen Zeilenumruch machen kann.

Hier der Link zu meiner Seite http://www.mandas.at/tut/v_photoshop.html
Hier ein Link was ich ganu möchte http://img442.imageshack.us/img442/1562/beispielhw7.jpg

Nicht wunder ich habe das in Adobe eben schnell zusammen geflickt.

CSS von Arcordion Menü

@charset "UTF-8";

/* SpryAccordion.css - Revision: Spry Preview Release 1.4 */

/* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */

/* This is the selector for the main Accordion container. For our default style,
* we draw borders on the left, right, and bottom. The top border of the Accordion
* will be rendered by the first AccordionPanelTab which never moves.
*
* If you want to constrain the width of the Accordion widget, set a width on
* the Accordion container. By default, our accordion expands horizontally to fill
* up available space.
*
* The name of the class ("Accordion") used in this selector is not necessary
* to make the widget function. You can use any class name you want to style the
* Accordion container.
*/
.Accordion {
border-left: solid 1px gray;
border-right: solid 1px black;
border-bottom: solid 1px gray;
overflow: hidden;
}

/* This is the selector for the AccordionPanel container which houses the
* panel tab and a panel content area. It doesn't render visually, but we
* make sure that it has zero margin and padding.
*
* The name of the class ("AccordionPanel") used in this selector is not necessary
* to make the widget function. You can use any class name you want to style an
* accordion panel container.
*/
.AccordionPanel {
margin: 0px;
padding: 0px;
}

/* This is the selector for the AccordionPanelTab. This container houses
* the title for the panel. This is also the container that the user clicks
* on to open a specific panel.
*
* The name of the class ("AccordionPanelTab") used in this selector is not necessary
* to make the widget function. You can use any class name you want to style an
* accordion panel tab container.
*/
.AccordionPanelTab {
background-color: #FF9900;
border-top: solid 1px black;
border-bottom: solid 1px gray;
margin: 0px;
padding: 2px;
cursor: pointer;
-moz-user-select: none;
-khtml-user-select: none;
}

/* This is the selector for a Panel's Content area. It's important to note that
* you should never put any padding on the panel's content area if you plan to
* use the Accordions panel animations. Placing a non-zero padding on the content
* area can cause the accordion to abruptly grow in height while the panels animate.
*
* Anyone who styles an Accordion *MUST* specify a height on the Accordion Panel
* Content container.
*
* The name of the class ("AccordionPanelContent") used in this selector is not necessary
* to make the widget function. You can use any class name you want to style an
* accordion panel content container.
*/
.AccordionPanelContent {
overflow: auto;
margin: 0px;
padding: 0px;
height: 200px;
}

/* This is an example of how to change the appearance of the panel tab that is
* currently open. The class "AccordionPanelOpen" is programatically added and removed
* from panels as the user clicks on the tabs within the Accordion.
*/
.AccordionPanelOpen .AccordionPanelTab {
background-color: #FFCC00;
}

/* This is an example of how to change the appearance of the panel tab as the
* mouse hovers over it. The class "AccordionPanelTabHover" is programatically added
* and removed from panel tab containers as the mouse enters and exits the tab container.
*/
.AccordionPanelTabHover {
color: #555555;
}
.AccordionPanelOpen .AccordionPanelTabHover {
color: #555555;
}

/* This is an example of how to change the appearance of all the panel tabs when the
* Accordion has focus. The "AccordionFocused" class is programatically added and removed
* whenever the Accordion gains or loses keyboard focus.
*/
.AccordionFocused .AccordionPanelTab {
background-color: #FF9900;
}

/* This is an example of how to change the appearance of the panel tab that is
* currently open when the Accordion has focus.
*/
.AccordionFocused .AccordionPanelOpen .AccordionPanelTab {
background-color: #FFCC00;
}
#beschreibung {
width: 200px;
margin-top: -25px;
margin-left: 155px;
}



Hier meine XML datei

<?xml version="1.0" encoding="utf-8"?>
<tutorial>
<beschreibung>
<name>Raster mit Verlauf</name>
<kurzbeschreibung>Dieser Raster Effect eignet sich sehr gut für Bilder die ein besonders Aussehen erhalten sollen.Besonders intressant für die jenigen die Clan Seiten entwerfen, mein kleiner Tip also - nehmt ein Cover von einen Pc Spiel her und führ dises Tutorial aus.Ersetzt einfach den Hintergund Fabverlauf durch das Bild</kurzbeschreibung>
<flash_info>
Länge:
Format:
Größe:
</flash_info>
<weitere_info>Auf lattsalat und Schnecke Druesse</weitere_info>
<bildpfad breite="150" hoehe="150">Bilder/raster.jpg</bildpfad>
</beschreibung>

<beschreibung>
<name>3D Buttom</name>
<kurzbeschreibung>Buttom mit 3D Effect</kurzbeschreibung>
<flash_info>Um das ganze abzurun den empfelen wir ihnen einen Rotwein aus Italien aus dem jahre 2004!</flash_info>
<weitere_info>Auf lattsalat und Schnecke Druesse</weitere_info>
<bildpfad breite="158" hoehe="150">chickencurry.jpg</bildpfad>
</beschreibung>
</tutorial>


Hoffe mir kann wieder geholfen werden
 
Zuletzt bearbeitet:
Hi,

zeichne das Grafikelement einfach mit float:left aus.

Und gewöhne dir doch bitte an, deine Quellcode-Angaben in die Highlight-Tags zu packen, vielen Dank.

texteditor.jpg

mfg Maik
 
Ich habe den Text ja in einen eigenen Div.Ich habe bis jetzt die Position angegeben , wie muss ich den nun genau verfahren?

Ach ja und wie kann ich einen umruch in einer xml machen ?
 
Hab ich doch heute Mittag schon beantwortet:

Code:
<img src="Bilder/raster.jpg" style="float:left;">

oder zentral im Stylesheet:

Code:
img.raster { float:left; }
Code:
<img src="Bilder/raster.jpg" class="raster">
mfg Maik
 
Du hast vergessen das ich die Bilddatei aus einer XML datei beziehe und das möchte ich auch gernebeibehalten.Also muss ich das anders lösen -.-
 
Mit XML hab ich keine Erfahrung. Da du dein Anliegen im CSS-Forum vorgestellt hast, hab ich dir die Lösung gezeigt, die die Formatierungssprache hierfür bereitstellt.

mfg Maik
 
Status
Nicht offen für weitere Antworten.
Zurück