This old forum is now only available for consultation/read. User accounts on this old website are blocked.
Please create a new account on and use the new forum
Apologies for this perturbation and thank you for your understanding!
Welcome, Guest

Styling groupx?
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Styling groupx?

Styling groupx? 5 years, 1 month ago #1

  • extension
  • ( Banned )
  • Banned
  • Posts: 280
I need some more styling for my groupx field but i need some help here.

<div class="column10">
<?php for ( $i = 0, $n = sizeof( $jSeblod->overskrift_groupx)-1; $i < $n; $i++ ) { ?>
<div class="ED-<?php echo $n ?>">
<b><?php echo $jSeblod->overskrift_groupx[$i]['overskrift']->value; ?><br></b>
<?php echo $jSeblod->overskrift_groupx[$i]['tekst']->value; ?>
<?php echo $jSeblod->overskrift_groupx[$i]['pris_kuvert']->value; ?>: <div style="font-size:16px;font-style:bold;text-align:right;">
<?php echo $jSeblod->overskrift_groupx[$i]['pris']->value; ?></div>

I need ho have both field: "pris_kuvert" and field "pris" on the same line. But the "pris" field MUST have another style as this:
<div style="font-size:16px;font-style:bold;text-align:right;">

Can somebody help me here?

Best regards

Re: Styling groupx? 5 years, 1 month ago #2

  • serval
  • ( User )
  • Platinum Boarder
  • Posts: 500
Hi extension.

You have use a DIV tag for "pris". That's why your values are not on the same line. Choose an inline tag, like "span". The line will be :
<span style="font-size:16px;font-style:bold;text-align:right;">
<?php echo $jSeblod->overskrift_groupx[$i]['pris']->value; ?></span>
The following user(s) said Thank You: extension
  • Page:
  • 1
Time to create page: 0.11 seconds