Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 21st, 2007, 11:54 AM
Registered User
 
Join Date: Aug 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default remove line break from masthead

I'm working on a masthead that's defined in a layout .xslt file.

I'm trying to make a masthead with two images - necessary b/c each one links to a different place. But in browsers (Firefox and IE6) it's displaying the 2nd image on the next line. What can I do to have both images display on the same line?

Total width of the layout in the css is 830. Image 1 is 540w and image 2 is 290w. But I tried reducing image 2 to 190w and that didn't solve it.

Here is the code from the xslt file:

<div id="banner">
<a href="/"><img alt="African People's Solidarity Committee" src="/style/images/apscmasthead-new1.jpg" /></a>
<a href="http://www.solidarityforafrica.org/giveback.shtml"><img alt="African People's Solidarity Committee" src="/style/images/apscmasthead-new2.jpg" /></a>
</div>

Thanks, Lisa
 
Old August 21st, 2007, 12:54 PM
Registered User
 
Join Date: Aug 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I figured it out - it wasn't in the xslt - it was that the banner was defined with a display style of block in the css. I changed to inline.

Thanks!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Line Break in CrossTab timothyc Crystal Reports 0 March 12th, 2008 09:25 PM
line break Cyber Shiva HTML Code Clinic 1 May 17th, 2007 06:04 AM
line break problem XSLT 1 February 20th, 2006 11:18 AM
Extra line Break kanchan_b XSLT 1 February 3rd, 2006 09:11 AM
break up line crmpicco Javascript How-To 1 June 6th, 2005 06:54 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.