Solved

css and dynamic value

Posted on 2010-09-18
5
381 Views
Last Modified: 2012-05-10
Hello

I have this and it works fine

<table width="567" border="0" cellpadding="5" cellspacing="0" <% Response.Write(" style='background-color:" & myColor & "'") %>>

I need to add to the style margin-bottom:25px;

I have tried below but I get errors.

<table width="567" border="0" cellpadding="5" cellspacing="0" <% Response.Write(" style='background-color:" & myColor &;margin-bottom:25px;"'") %>>

I would be grateful if anyone can enlighten me a little on how to not get the errors hehe.

thanks for any help

k
0
Comment
Question by:thatelvis
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 11

Accepted Solution

by:
tobzzz earned 500 total points
ID: 33707625
Hi thatelvis,

Try this instead:
<table width="567" border="0" cellpadding="5" cellspacing="0" style='background-color:<%=myColor%>;margin-bottom:25px">

/ Tobzzz
0
 
LVL 1

Author Comment

by:thatelvis
ID: 33708554
thank you tobazz

that didnt work

this works

 <table width="569" border="0" cellpadding="5" cellspacing="0" <% Response.Write(" style='background-color:" & myColor & "'") %>>  

but how to add this to it is a bit of a pain

margin-bottom:25px


cheers

k
0
 
LVL 1

Author Comment

by:thatelvis
ID: 33708718
ok got it

<table width="569" border="0" cellpadding="5" cellspacing="0" style="background-color:<%= myColor %>; padding-bottom:10px;">


thanks for your help

k
0
 
LVL 1

Author Closing Comment

by:thatelvis
ID: 33708756
thanks a milion you put me in the right direction any way. it was style='background-color:<%=myColor%>;margin-bottom:25px"> you gave me but it should have been style="background-color:<%=myColor%>;margin-bottom:25px">

Haha just missing a inverted comma just a well i was not missing a semi colon  as my wife wouldnt know what to think.
0
 
LVL 11

Expert Comment

by:tobzzz
ID: 33708894
Ah yes, pesky inverted comma - pleased to help!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question