Good question... I dunno what is the answer. I'll do some research and get back to you if I find an answer. You should email the people at iContact as they probably know..
This is ASP.NET Code.. but it's pretty generic..
For(int i=1;i<=count;i++).
{.
HyperLink menuLink = new HyperLink();.
PlaceHolder pl = new PlaceHolder();.
Literal lit = new Literal();.
// this is where I am adding the <br> and a line.
Lit.Text = "<br><font color=white.
Size=4><b>_________</b></font><br><br>";.
//.
MenuLink.ID = "Menu" + i.ToString();.
MenuLink.Text = Convert.ToString(ds.Tables["Menu_Item"].Rows[i]["Menu_Item_Text"]);.
MenuLink.NavigateUrl = Convert.ToString(ds.Tables["Menu_Item"].Rows[i]["Menu_Item_Url"]);.
MenuLink.Font.Bold = true;.
Plh1.Controls.Add(menuLink);.
Plh1.Controls.Add(lit);.
}..
If you just want to decrease the gap between the links :-.
However, if it's because you've got a bigger gap than you expect, then I'd check your code again to make sure that there really is only a single <br> after each link..
*edit* just seen your post :S.
You would appear to be outputting 3 <br> tags per link ? .
View the source of the html it produces and you'll soon see...
I have to put 3 <br> tags... see I need to have a gap before the link, then the line comes in, then another gap. If I use 3 <br> s it comes like:.
Link1.
______.
Link2.
______.
Link3.
______.
Hence if I remove even one of the <br> s all will go wrong..
See?..
The three <br> tags you have would be putting an extra line in, like so:.
Link1.
Link2.
Link3.
Try it with only one <br> after the </font> tag and see how it looks..
Rys..
No the comes after the link I mean adjacent to it.. like.
Link.
Link.
Link.
Etc....
Please just tell me a way to change the depth of <br> is it not possible???..
Just take one of the breaks out. if you look at the source like it was suggested then you will see you have 3 breaks after each linke..
It should look like this as you have it now..
You still get a break after the link and after the line. in fact you have 3 after the line. just take one of those out...
Ya I don't have two after the link I have only one <br> But the thing is I want to decrease the size indent given by <br> thats it.
Please help!!..
Change :-.
Lit.Text = "<br><font color=white.
Size=4><b>_________</b></font><br><br>";.
To :-.
Lit.Text = "<br><font color=white.
Size=4><b>_________</b></font><br>";.
If that doesn't work then you'll have to use css to changhe the line height (I posted an example earlier in this thread)..
Thanx but that does work... but does not server the purpose...
Maybe I'll have to go with the style sheets.
Ok thanx people..
Show us the outputted html. I will prove it once again...
If I understand correctly, each time this prints.
Lit.Text = "<br><font color=white.
Size=4><b>_________</b></font><br><br>";.
It will have 3 after the link. 1 before the line and 2 after. they ALL add to the total. take the last 2 out. you always have 1 before it and that will move it to the next line..
Lit.Text = "<br><font color=white.
Size=4><b>_________</b></font>";.
Try that...
Yeah, these cats is right, there's DEFINITELY 3 breaks there. look closely at your ASP code..
Lit.Text = ".
<br>.
<font color=white.
Size=4><b>_________</b></font>.
<br><br>.
";..
Ok guys pictures speak louder that wotds eh?.
See my code first.
Lit.Text = "<div style=" + "line-height=85%>" + "<br><font color=white size=4><b>__________</b></font><br><br></div>";.
I'm using <div> tags to lessen the line height...
And now see the problem:.
Here :.
Http://cloud.prohosting.com/saud4u/menu1.jpg..
Post a link to the page online so we can take a look at the html...
Here you go...
Http://cloud.prohosting.com/saud4u/menus.html.
View this in medium text size... Each link is generated dynamically, u'll see that there is unwanted space after each link. I want to modify that..
My code is:.
Lit.Text = "<div style=" + "line-height=80%" + "><br><font color=white size=4><b></b></font></div>";.
There are NO <br> tags after the line.. I donno if the <div> is working till after the line...
Or something.
Yelp!..
<div style="">.
<br>.
<font color="white" size="4"><b></b></font></div>.
Delete ALL breaks...
What you have there is a list of links, and should therefore be marked up as a list. All visual styling (borders, padding/margin, line-height, ect.) should be done with CSS...
Honestly, that's a great point. you should also consider upgrading the markup to XHTML also..
But hey, whatever works..
Seriously, though....
THREE BREAKS.
, dude. and one acronym: GIGO...
Thanx people.. I'll try using a css. thank you again...

