Solved

CSS issue in joomla, Dont understand where it takes the settings from!!

Posted on 2011-03-01
5
461 Views
Last Modified: 2012-05-11
I am makeing a site on http:/new.uffnorge.org

I am using Artister 3.0 to make the template
I am using a Slide show in TOP1 and a green menu on TOP3
Somehow the green menu fills 50% of the with, but I was expecting it to fill only 34%.
See attached picture

Index.php shows:
<?php echo $view->positions(array('top1' => 33, 'top2' => 33, 'top3' => 34), 'art-block'); ?>

In firebug i can see that table is set to 50%
I change this in firebug to 34% and it looks right then

Question:
Where do I edit to change the 50%?
I cant find it in Index.php or Template.css so it must be elsewhere?


CSS-Issues.jpg
0
Comment
Question by:morten444
  • 3
5 Comments
 
LVL 7

Expert Comment

by:Vimal DM
ID: 35008969
hai,

There are two things that you need to concentrate

1) Look that below classes from your joomla template CSS

art-vmenublock
art-vmenublock-body
art-vmenublockcontent
art-vmenublockcontent-body
art-vmenu

class="t"

2) Make view source and see the page,where there is menu problem

a bulk of "span" tags are created having the following classes

<span class="l"></span>
<span class="r"></span>
<span class="t"></span>

look at these too

0
 

Author Comment

by:morten444
ID: 35009152
Hi
Thanks for reply
I have looked and I cant find anything saying "50%"

If I do a text search in my template.css, should I not be able to find 50% as thats what it says in the html window or am I wrong?

I was thinking as I can not see the 50% anywhere it cant be in the template.css where I have to look for the solution. Is that wrong?


Regards
Morten
0
 
LVL 11

Accepted Solution

by:
Amanda Watson earned 500 total points
ID: 35011255
I remember having this problem in Artiseer.
You need to be looking in the functions.php file.

I had something like this

function artxPositions(&$document, $positions, $style)
      {
            ob_start();
            if (count($positions) == 4) {
                  if (artxCountModules($document, $positions[0])
                        && artxCountModules($document, $positions[1])
                        && artxCountModules($document, $positions[2])
                  && artxCountModules($document, $positions[3]))
                  {
                        ?>
<table class="position" cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
  <td width="25%"><?php echo artxModules($document, $positions[0], $style); ?></td>
  <td width="25%"><?php echo artxModules($document, $positions[1], $style); ?></td>
  <td width="25%"><?php echo artxModules($document, $positions[2], $style); ?></td>
  <td width="25%"><?php echo artxModules($document, $positions[3], $style); ?></td>
</tr>
</table>


and changed the percentages there..
0
 

Author Comment

by:morten444
ID: 35068396
Hi. Thanks for your reply
I got it fixed but in the index.php file
As artister has top1,top2 and top3 and I only used Top1 and top3, top 2 collapsed
I therefore removed the top2 from index.php and sat top1 to 74% and top3 to 26%
That worked
Your idea above led me to the right place
Thanks
0
 

Author Closing Comment

by:morten444
ID: 35068403
Thanks again
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
push text up below h2 tag 1 36
How to create a 3-column full-width flex button layout 1 23
.php tree directory? 5 56
Materializecss - Different Behaviors in Browser's 1 20
When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now