Picture before Breadcrumb [SOLVED]

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
User avatar
Gregor
Power Poster
Power Poster
Posts: 1874
Joined: Thu Mar 23, 2006 9:25 am

Picture before Breadcrumb [SOLVED]

Post by Gregor »

Hello,

I'd like to have a tiny picture showing the translation option before the breadcrumb "waar ben ik: ". Don't mention the translation ;) Any idea how can get the picture in line with the breadcrumb? In the stylesheet I placed:

Code: Select all

/* position for vertaling */
div#vertaling {
   height: 3px;
}
www.uisge-beatha.eu

Thanks in advance,
Gregor
Last edited by Gregor on Sun Dec 02, 2007 8:19 am, edited 1 time in total.
User avatar
neophron
Forum Members
Forum Members
Posts: 145
Joined: Sun Feb 12, 2006 12:11 am

Re: Picture before Breadcrumb

Post by neophron »

How about a background-image with css? Do you want only one pic or for every link?
Is this page online?

neophron
User avatar
Gregor
Power Poster
Power Poster
Posts: 1874
Joined: Thu Mar 23, 2006 9:25 am

Re: Picture before Breadcrumb

Post by Gregor »

Thanks for your reply.

The site is online (www.uisge-beatha.eu), and I only want the picture once, because it is ment to translate the webpage to English. So, I guess it is just one link.
carasmo
Power Poster
Power Poster
Posts: 506
Joined: Thu Feb 08, 2007 6:11 pm

Re: Picture before Breadcrumb

Post by carasmo »

You have to put the picture and the div containing the picture inside the breadcrumbs div and clearfix it or put a inside the containing div. Then style it accordingly (float left, margin, etc.,). Usually I use a line-height on the containing div to get things to line up vertically (for one line items).

Or you can float the image like you did with the breadcrumbs and the search.

Don't put the image between a p tag, because the p tag typically has padding and margin on it on it.

EXAMPLE ONLY:::

Code: Select all


   <!-- Start Breadcrumbs -->
   <div class="breadcrumbs">

<!-- Vertaling van de site --> <div id="vertaling">

<a href="http://translate.google.com/translate?u=http%3A%2F%2Fwww.uisge-beatha.eu&langpair=nl%7Cen&hl=nl&ie=UTF8" target="_blank" title="Uisge Beatha in het Google Engels..."><img src="uploads/images/cms/flag_en.gif" alt="English" title="Uisge Beatha in het Engels" /></a>  

 </div><!-- Einde Vertaling van de site -->


   {breadcrumbs starttext='Site Location' root='Home' delimiter='»'}
   

<hr class="accessibility" />

<br />
   </div>
   <!-- End Breadcrumbs -->



then your css is something like:


div#vertaling {width: 22px;height:12px;}
div#vertaling a {border:0px;}
div.breadcrumbs br {clear:both;height:0px;}

I think this will work, it's all in my head working.
User avatar
Gregor
Power Poster
Power Poster
Posts: 1874
Joined: Thu Mar 23, 2006 9:25 am

Re: Picture before Breadcrumb

Post by Gregor »

Thanks Carasmo. If you look at the pages, some things are changed, and although both pages (main and other menu pages) use a different stylesheet, the part for the 'Breadcrumb' and 'vertaling' are in both stylesheets the same. However, if look at the mainpage and one of the menu pages, you'll see the difference.

I already had a look with cssedit, however my knowledge on css is too little to solve it ???
carasmo
Power Poster
Power Poster
Posts: 506
Joined: Thu Feb 08, 2007 6:11 pm

Re: Picture before Breadcrumb

Post by carasmo »

Without actually building your site, I can't make it consistent for all pages, they should all use the same style sheet.  For the main page, the best way to do this is by enclosing the entire breadcrumb output in a container and then style the container, it should work but if there is other stuff interfering with it, that I don't know.

Code: Select all

   <!-- Start Breadcrumbs -->
   <div class="breadcrumbs">

<!-- Vertaling van de site --> <div id="vertaling">

<a href="http://translate.google.com/translate?u=http%3A%2F%2Fwww.uisge-beatha.eu&langpair=nl%7Cen&hl=nl&ie=UTF8" target="_blank" title="Uisge Beatha in het Google Engels..."><img src="uploads/images/cms/flag_en.gif" alt="English" title="Uisge Beatha in het Engels" /></a>  

 </div><!-- Einde Vertaling van de site -->


   <p>{breadcrumbs starttext='Site Location' root='Home' delimiter='»'}</p>
   

<hr class="accessibility" />

<br />
   </div>
   <!-- End Breadcrumbs -->

then add this to the style sheet

Code: Select all


div.breadcrumbs p {margin:0;padding:0 0 0 25px;}

User avatar
Gregor
Power Poster
Power Poster
Posts: 1874
Joined: Thu Mar 23, 2006 9:25 am

Re: Picture before Breadcrumb

Post by Gregor »

Thanks for taking the time to have a look.

I'm sorry to tell, but the code did not help. If there is anything interfering, I don't know. I find stylesheets difficult to understand. I always thought that for different page lay out, one also need more stylesheet. If I understand you correctly, than there is no need to do so, and can I put all styling in one sheet ???
carasmo
Power Poster
Power Poster
Posts: 506
Joined: Thu Feb 08, 2007 6:11 pm

Re: Picture before Breadcrumb

Post by carasmo »

Looks as intended on FF. I don't know about the other pages, but the home page is correct on FF.

One style sheet for entire site, or a few but they all are attached with the CMSMS way (through the template stylesheet relationship), your site is set up non-standard.
User avatar
Gregor
Power Poster
Power Poster
Posts: 1874
Joined: Thu Mar 23, 2006 9:25 am

Re: Picture before Breadcrumb

Post by Gregor »

So that makes a new project... get my stylesheets in 'the standard way'. I now have two templates (a 3 column and a 2 column) and the stylesheets are all attached via the relationship menu. I noticed it is quit some work o get 2 stylesheets nearly o equal (becaue of the 2 - 3 column lay out)

Just to make sure I understand you correct, so all page-templates (2 and 3 column) use one stylsheet that does the styling for all pages. Some specific styling, calendar for instance, is done in a seperate styesheet.
carasmo
Power Poster
Power Poster
Posts: 506
Joined: Thu Feb 08, 2007 6:11 pm

Re: Picture before Breadcrumb

Post by carasmo »

You would make global items in the global contents for header, footer, etc. It would be very helpful for you to learn CSS from Andy Budd or some other CSS guru. His book and site helped me a lot, but it took months and months.
User avatar
Gregor
Power Poster
Power Poster
Posts: 1874
Joined: Thu Mar 23, 2006 9:25 am

Re: Picture before Breadcrumb

Post by Gregor »

I ordered a book on css. Thanks for the suggestion. Now find the time to study...

I managed to et the two in line. First I merged the two stylesheets to one stylesheet and created a second one that only holds the difference for a two and three column lay out. Than started with the tips I earlier in this post, and now in FFand Safari, they are in line. In IE the breadcrumb is placed under the picture.
carasmo
Power Poster
Power Poster
Posts: 506
Joined: Thu Feb 08, 2007 6:11 pm

Re: Picture before Breadcrumb

Post by carasmo »

IE bites. Did you check it in IE 7. More and more people are moving to that. I can't think of what would be happening in IE to cause it to move to the next line. Look around in google too.
User avatar
Gregor
Power Poster
Power Poster
Posts: 1874
Joined: Thu Mar 23, 2006 9:25 am

Re: Picture before Breadcrumb

Post by Gregor »

I checked it at work, and they have IE 6.0 and I don't think they will go to IE 7 just because of my site  ;)

I'll google around..

Would you mind to have a look at my site again with FF and click on the various menus. Something weird is happing when clicking on "Fotoalbum", and than hover over a menu item that has two or more deeper menu's. The menu takes the whole width of the screen. Thanks.
Last edited by Gregor on Fri Nov 30, 2007 4:39 pm, edited 1 time in total.
carasmo
Power Poster
Power Poster
Posts: 506
Joined: Thu Feb 08, 2007 6:11 pm

Re: Picture before Breadcrumb

Post by carasmo »

Probably didn't attach the style sheet or there's a missing end bracket or something funky with the stylesheet. I use Fire Fox developer tools to validate both CSS and xhtml, because it helps point out errors (such as style sheet errors or syntax or a missing closing div). I am booked up right now, so unfortunately I can't troubleshoot the problem.
User avatar
Gregor
Power Poster
Power Poster
Posts: 1874
Joined: Thu Mar 23, 2006 9:25 am

Re: Picture before Breadcrumb

Post by Gregor »

@Carasmo:Thanks for the help so far.

RonnyK mentioned that it (still) does not look good in IE7 (which I don't have/use). Because I replied on an earlier post about menu's, I'll close this post.

Gregor
Post Reply

Return to “Layout and Design (CSS & HTML)”