|
I have dropdown lsit on my web page.
<asp:DropDownList ID="ddlFrom" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlFrom_SelectedIndexChanged">
</asp:DropDownList>
1)I want to change scrll bar color of the dropdownlist.
2)selected item color change.
want to do above 2 things in CSS.
i have added below code in my css file.
select
{
font-family: Calibri;
font-size: 13px;
font-weight: normal;
text-decoration: none;
background: #FDEEF4;
color: #663333;
border: 1px solid;
}
what else i need to add in above code to achiev above 2 things??
|
|
|
|
|
|
Thanks for the reply.
but i want to user asp.net controls..
link which you have provided , in which they have used another controls
so any other wayout??
|
|
|
|
|
You can download the dlls and you could use that control in the link mentioned above.
0)If you want only asp:DropDownList then I doubt you can change the color of arrow.
1)To change the color of the selected item
DropDownList1.SelectedItem.Attributes.Add("style", "color:Black; background:Orange;");
DropDownList1.Attributes.Add("style", "color:Black; background:Orange;");
|
|
|
|
|
You pretty much can't with CSS.
Except, maybe, and probably only in IE, you could put this in the CSS for the dropdown and see what happens:
scrollbar-base-color: #1F2C4F;
scrollbar-arrow-color: #55BBff;
scrollbar-track-color: #5D7B9D;
It works for grids, panels, and the browser itself, so it might work for dropdowns, too. With the above caveats.
|
|
|
|
|
css:
.tablemenu a
{
list-style:none;
color:#d8d8d8;
text-decoration:none;
font-weight:bold;
font-family: Arial;
font-size: 12px;
}
.swidth
{
text-align:center;
padding-left:18px;
padding-right:18px;
}
.menuhover a
{
/*-----*/
}
.menuhover a:hover
{
background-image: url(images/nav_hover.gif);
background-repeat:no-repeat;
background-position:center;
display:block;
height:52px;
}
HTML:
<td class="menuhover" width="74px"><br />
<a href="#">UNLOCK<br />CODE</a><br />
</td>
=> position the Text is not the middle in hover-image.
it is located on top
Please help me, thank you so much
(if you need more infomation, live chat with me: thanhpn_wms@yahoo.com)
modified on Wednesday, July 13, 2011 10:51 PM
|
|
|
|
|
|
thanks ^^. but not successfull. Another css piece I wrote:
.home_o a{height:68px;width:75px;}
.home_o a:hover{background:url(images/home_o.gif) center no-repeat;display:block;text-indent:-9999px;}
HTML:
<td class="home_o" width="110px">
<a href="#"><img border="0" alt="" src="images/home.gif" /></a>
</td> it can runs on Firefox and IE6+, but can not runs on Chrome and Safari !!!
|
|
|
|
|
Try switching the positions of center and no-repeat .
|
|
|
|
|
You should use padding and margin if you exactly know the width and height.Also you can use line-height property to the .
|
|
|
|
|
Over the past few months, I've noticed that animated ads on lots of sites don't load and start playing until I scroll down to them.
Is this something that's being coded into the page, or is it a feature of the latest browsers to not load them until they are needed?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Hello,
I need to develop the theme for ASP.NET MVC 3 application.
Can you please suggest me the approach?
1. Should i go for bunch of style classes and load them dynamically.?
Is there any better approach which lets me to use single style class and allow me to load images dynamically.
Please suggest.
Thanks,
Rahul
|
|
|
|
|
|
Good Day All
i have a page, i am it is getting the background from an image.
<html>
<head>
<style>
img.bg {
min-height: 100%;
min-width: 1024px;
width: 100%;
height: auto;
position: fixed;
top: 0;
left: 0;
}
@media screen and (max-width: 1024px) {
img.bg {
left: 50%;
margin-left: -512px;
}
}
#page-wrap
{
position: relative;
width: 400px;
margin: 50px auto;
padding: 20px;
background: white;
-moz-box-shadow: 0 0 20px black;
-webkit-box-shadow: 0 0 20px black;
box-shadow: 0 0 20px black;
}
p
{
font: 15px/2 Georgia, Serif;
margin: 0 0 30px 0;
text-indent: 40px;
}
</style>
</head>
<body>
<img src="http://196.41.221.20:8095/EcashPos/images/MainBackground.jpg" class="bg">
</body>
</html>
in Firefox this is fine, but in IE it only fills a portion of the page. i have attached the example document, or you can use this one.
i am using IE9
Thanks
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Why not do this via CSS?
It is much easier to control and edit.
Something like this:
body
{
background-image:url('MyImage.png');
background-repeat:no-repeat;
background-position:right top;
}
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
Which is your choice and why?
I've been using EasyPHP for some time and it works well.
Never tried XAMPP though...
|
|
|
|
|
I use XAMPP myself. Simply as a result of not having heard of EasyPHP before.
For brevity, I'll abbreviate XAMPP to x* and WAMPP to w*
I do seem to recall that x* had replaced the 'old' w*, though am unable to find (in about 90 seconds) any concrete evidence of this being true, merely a few other people that had the same assumption.
I will note however, that my code written and functioning under x* in windows will run just fine under linux, so long as there are not calls to COM objects and that silly mistakes are not made with file-naming/handling conventions.
The same cannot be said for my w* code, which would invariably fail when used in x*. I'd suppose for a lack of packages, though I do recall having trouble when writing a pdf creation module, as some of the w* files were older than the same files in the x* distro - result: "No PDF you you!"
I might add, it's been at least 18 months since I investigated either. A lot can change in a year and a half.
|
|
|
|
|
I am having Iframe on defaultone.aspx page
from tht page i am called defaulttwo.aspx page. on that page their is master page call(defaultmaster.master ).
iWant to get that master page object in java script of Defaultone.aspx page.
How i will get tht??
modified on Monday, June 27, 2011 8:43 AM
|
|
|
|
|
First of all, don't use very urgent in your post. This is a volunteer site and people will answer you on their time, not yours.
Once the pages are rendered to the client their is no page or masterpage, just elements. Use the parent object from the iframe.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hey...thnks for the reply.
I tried in different way but no use
on that master page i have control.. on tht control there is label. i want to disable tht label
from ifare call page
script language="javascript" type="text/javascript">
function setIframeHeight(iframeName) {
debugger;
var s = document.getElementById(iframeName).contentWindow.document;
var t = document.frames("iFrame").document.firstChild.childNodes[1].document.getElementsByTagName("MasterPlaceHolder");
var test = document.frames("iFrame").document.getElementId('MasterPlaceHolder');
var p = s.document.getElementById("ucModel1");
}
</script>
iFrame.Attributes.Add("onload", "setIframeHeight('iFrame');");
|
|
|
|
|
First, format your code with the PRE tags.
As far as accessing your Label control, you can use something like this:
var label = document.getElementById('<%Label1.ClientID%>');
label.disabled = true;
|
|
|
|
|
Hey, I am trying to add some text to an image using any language(web development). I'm not very good with web development, so I really don't know which language to use. So far, I have a template, and all I need to do is add some text in some coordinates. The only problem is, is that I've looked all over the internet, and all I've seen is putting text OVER the image. I am trying to add text to the actual image, so they can then save the picture to their computer with the text. Thanks for any help, Hetelek.
modified on Friday, June 24, 2011 2:34 PM
|
|
|
|
|
|
I'm trying to put the text PART of the image. Not over it :/
|
|
|
|
|