hcl-bot
November 30, 2007, 5:47am
1
I have a field that does a column lookup to a column with this formula:
“
”
This works fine except that it creates massive spaces above and below each line.
I have been on the web and found out that it is due to the
hcl-bot
November 30, 2007, 6:19am
3
Subject: any other attrbiutes need resetting ?
Thanks that has affected it but I still have some space.
I have added in a bottom attrbiute but are there any other attributes that I need to set to zero ?
Thanks
Paul
"<style type="text/css">
ul {margin-top: 0px;margin-bottom: 0px;}
"
hcl-bot
November 30, 2007, 7:44am
4
Subject: so close …
I am now so close it is infuriating !!
this is the code in the field now:
“” + @If(isHomePage=“Home Page”;“”;“
”) + @UpperCase(@Left(Name_Display;1)) + @Right(Name_Display;@Length(Name_Display)-1) + @If(isHomePage=“Home Page”;“ <ul STYLE="margin-top:0px; margin-bottom:0px">”;“”) +“ ”
This produces a list with one entry at the top not in the list (because it is a home page) and then a list of nicely wrapping list entries with bullet points. The only problem is that there is a line break between the home page link and the list of other links.
Nearly there though.
Cheers
Paul
This is some of the source code produced:
Group Systems Department
hcl-bot
November 30, 2007, 9:44am
5
Subject: RE: so close …
I believe you have to get rid of the line breaks (list already have their own)Also, it’s better (xhtml) if you add at the end of the list item.
Martin Vereecken
http://www.bizzybee.be
Subject: RE: so close …
Martin
Thanks I removed the line breaks by changing my field multi value separator from new line to space.
Cheers
Paul
hcl-bot
November 30, 2007, 6:22am
9
Subject: any other attributes ?
Thierry many thanks but your method also still leaves some space ? Any other thoughts ?
Thanks
Paul
hcl-bot
November 30, 2007, 6:35am
10
Subject: RE: any other attributes ?
What do you mean by “still leaves some space”?
hcl-bot
November 30, 2007, 6:47am
11
Subject: RE: any other attributes ?
Thierry
Before I made the change it looked like there were two line spaces between the entries (except for the top one were there was only one line space).
After implementing the code there is now no gap above the first entry but all the others have a gap of 1 line space between them.
Interestingly if I take out the then it removes all the extra line breaks but the list is slanted across the page.
Thanks
Paul
hcl-bot
November 30, 2007, 6:52am
12
Subject: RE: any other attributes ?
You could also make sure there is no extra spacing between the li elements by using this:
ul, li {margin-top: 0px;}
But make sure there are no extra added by the code you generate (see source of your webpage to check)
Martin Vereecken
http://www.bizzybee.be