insideorkut.com

What is a good iContact email marketing website?

Try iContact email marketing for free for 30 days. Click here to use coupon...

Get a free trial of iContact here. Click here for this special deal...
First question I have is What is a good iContact email marketing website? Thanks for any comment. Second question.. I am writhin code in C# script and I am putting hyperliks dynamically through a for loop. I am usin <br> to put links in new lines. But the gap between the links is too much! how can I change that. I am using only one <br> after each link...

Comments (19)

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..

Comment #1

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);.

}..

Comment #2

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...

Comment #3

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?..

Comment #4

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..

Comment #5

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???..

Comment #6

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...

Comment #7

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!!..

Comment #8

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)..

Comment #9

Thanx but that does work... but does not server the purpose...

Maybe I'll have to go with the style sheets.

Ok thanx people..

Comment #10

Show us the outputted html. I will prove it once again...

Comment #11

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...

Comment #12

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>.

";..

Comment #13

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..

Comment #14

Post a link to the page online so we can take a look at the html...

Comment #15

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!..

Comment #16

<div style="">.

<br>.

<font color="white" size="4"><b></b></font></div>.

Delete ALL breaks...

Comment #17

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...

Comment #18

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...

Comment #19

Thanx people.. I'll try using a css. thank you again...

Comment #20


This question was taken from a support group/message board and re-posted here so others can learn from it.