You are not logged in.

Controlpanel

At the moment there aren´t any members active..

Statistic

  • Members: 13109
  • Threads: 18183
  • Postings: 119668 (ø 46.08/day)
  • Greetings to our newest member: misssusan

w2d Premium-Support

Die Experten für web to date / shop to date

Facebook

Lancair

Beginner

  • "Lancair" is male
  • "Lancair" started this thread

Posts: 44

Location: Großpösna

Occupation: Flugzeugbauer

web/shop to date Version: w2d 7

  • Send private message

1

Tuesday, February 22nd 2011, 2:12pm

Rahmen um Bilder

Hallo,

hätte gern um die Bilder in den Tabellen einen Rahmen. Könnte mir da vielleicht jemand helfen?

Vielen Dank im Vorraus

Rolf

urmel

Moderator

Posts: 3,387

Location: Mitteldeutschland

  • Send private message

2

Tuesday, February 22nd 2011, 5:24pm

Hallo rolf,

schau mal bei Stu Nicholls. Habe dies gerade heute umgesetzt. Wirklich ganz einfach.
urmel has attached the following file:
  • shadow.jpg (76.56 kB - 19 times downloaded - latest: May 6th 2012, 10:31am)
Gruß, Urmel
Und nicht vergessen: "Mittelmaß ist ansteckend"!

Validierungs-Tipps für w2d-Templates + valide w2d-Designs.

Schon die neuen Features entdeckt? Beispielsweise die optimierten Metaangaben oder KISSIMMEE +++

Lancair

Beginner

  • "Lancair" is male
  • "Lancair" started this thread

Posts: 44

Location: Großpösna

Occupation: Flugzeugbauer

web/shop to date Version: w2d 7

  • Send private message

3

Tuesday, February 22nd 2011, 5:55pm

Hallo Urmel,

vielen Dank, aber ich habe keine blasse Ahnung wo ich das hin schreiben soll.

Gruß Rolf

urmel

Moderator

Posts: 3,387

Location: Mitteldeutschland

  • Send private message

4

Tuesday, February 22nd 2011, 10:46pm

ich habe keine blasse Ahnung wo ich das hin schreiben soll.
Hallo Rolf, da du mich so freundlich bittest:

ich habe mich am Beispiel "Wide" orientiert und dafür in den Quellcode von Stu's Beispiel geschaut:

Source code

1
2
3
4
5
6
<div class="out wide">
div class="in ltin tpin">
<h3>Wide</h3>
<p>One more text box that has a lot more text so that the box will be even taller and the shadow will still shadow to suit. The shadow color can be matched to the background and can also be positioned to the left or right.</p>
</div>
</div>
Was sehe ich da?

Er hat zwei Container um den betreffenden Absatz gepackt:
<div class="out wide">
div class="in ltin tpin">

und hier insgesamt 5 Klassen zugeordnet:
.out, .wide, .in, .ltin und .tpin

Die entsprechenden Styleangaben liefert er auch noch mit:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.out {
  display:block; 
  background:#bbb; 
  border:1px solid #ddd; 
  position:relative;
  margin:1em 0 0 10px;
  }
.in {
  background:#fff; 
  border:1px solid #555; 
  position:relative; 
  padding:5px;
  font-weight:normal;
  }
.ltin {
  left:-5px;
  }
.tpin {
  top:-5px;
 }
.wide {width:18em;}


(Ich habe für .wide 100% genommen.)

Jetzt musst du nur noch die Styleangaben in dein Stylesheet basteln und die o.g. Container in die Tabellenzelle vor und nach der Grafikausgabe:

Source code

1
2
3
4
5
6
7
8
9
<cc:if cond="&mycol.picture">
<div class="out widetablepic">
<div class="intablepic ltin tpin"> 

......

</cc:if> 
</div><!-- Ende in ltin tpin -->
</div><!-- Ende out wide -->


Da die Schatten ja auch Platz beanspruchen, muss der Wert für die Grafik neu berechnet werden. Ich habe für mein Beispieldesign folgende Berechnung eingesetzt:

Source code

1
<cc:picture uid="&mycol.picture" obj="tablepic" width="&plugin.width * &mycol.width / 120 - 20" suffix="'table'+&mycol.width">
Gruß, Urmel
Und nicht vergessen: "Mittelmaß ist ansteckend"!

Validierungs-Tipps für w2d-Templates + valide w2d-Designs.

Schon die neuen Features entdeckt? Beispielsweise die optimierten Metaangaben oder KISSIMMEE +++

Lancair

Beginner

  • "Lancair" is male
  • "Lancair" started this thread

Posts: 44

Location: Großpösna

Occupation: Flugzeugbauer

web/shop to date Version: w2d 7

  • Send private message

5

Wednesday, February 23rd 2011, 2:31am

Hallo Urmel,

ich weis zwar immer noch nicht in welche Ordner ich das reinschreiben muss, werde es aber alles austesten. ;(

Also nochmals vielen Dank für deine Mühe

Rolf

urmel

Moderator

Posts: 3,387

Location: Mitteldeutschland

  • Send private message

6

Wednesday, February 23rd 2011, 9:01am

ich weis zwar immer noch nicht in welche Ordner ich das reinschreiben muss, werde es aber alles austesten. ;(

HAllo rolf,

Ordner: C:\Program Files\DATA BECKER\web to date 7\designs\Epsilon

Datei: paragraph_table.ccml

Vorher Datei sichern.
Gruß, Urmel
Und nicht vergessen: "Mittelmaß ist ansteckend"!

Validierungs-Tipps für w2d-Templates + valide w2d-Designs.

Schon die neuen Features entdeckt? Beispielsweise die optimierten Metaangaben oder KISSIMMEE +++

Lancair

Beginner

  • "Lancair" is male
  • "Lancair" started this thread

Posts: 44

Location: Großpösna

Occupation: Flugzeugbauer

web/shop to date Version: w2d 7

  • Send private message

7

Wednesday, February 23rd 2011, 4:12pm

Hallo Urmel,

hervorragend !!!

Vielen Dank nochmal

Gruß Rolf

Similar threads