|
Hello all,
I'm attempting to create an ASP.NET master page that has a three column layout and doesn't use tables.
Right now, I have two images, BGLeft.png and BGRight.png that will be used for the backgrounds of the right and left columns. I've set BGLeft to be the background of the body of the page. I then added a div for a wrapper and set its margin to 100px, which is the width of BGLeft.png. The wrapper div has BGRight.png as its background. The background is aligned to the right.
The layout is perfect now, except one little thing. I want the wrapper div to have the same height as the body (so that the right and left background images are the same height). How do I make this happen? Should I use some javascript or is there a better (CSS) way of doing this?
Thanks,
Will Gant
|
|
|
|
|
Try setting 'height:100%' in the style of your wrapper div.
If that doesn't help, here is a link to great page of css layout templates, which I find very useful. http://www.intensivstation.ch/en/templates/[^]
Words fade as the meanings change, but somehow, it don't bother me.
|
|
|
|
|
using HTML can I set a left and right border to a cell or column in a table w/o setting a top and bottom border? I don't want a box around it. I want a vertical line to the left and right of it.
|
|
|
|
|
Yes, using CSS.
Give your table an id for example id="MyTable"
Then in your style sheet create a style for the columns in that table
#MyTable td{
border-right:1px solid #CCC;
border-left:1px solid #CCC;
border-top ;
border-left ;
}
You can replace the #CCC with which ever colour you want, and set the width of the border. You can also try 'dotted' or 'dashed' instead of 'solid'.
Words fade as the meanings change, but somehow, it don't bother me.
|
|
|
|
|
|
Hi all,
I have created a DHTML Behavior that changes the style of buttons on my web page. I apply the behavior to the buttons using the class attribute, and the behavior is embedded in my style in a css file.
Now, it all works great, currently I have this functionality:
* change the gradient filter direction from up to down on mouseover
* change gradient filter direction from down to up on mouseout and mouseup
* change the gradient filter direction to left to right on mousedown
additionally it changes the borders and padding to give a click effect.
Now I want to extend this a little.
How can I have a gradient wipe included on the mousedown event so as it is clicked it appears to wipe from one side to the other but how can I do this please? Do I need to have the filter already part of the button element (INPUT Type = Button !) when it is loaded?
Here is the code as it stands in the event handler for mousedown in my htc file:
function MouseDown()
{
runtimeStyle.padding = "0px 4px 4px 4px";
runtimeStyle.color = "white";
runtimeStyle.filter = "progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr=#ffffff, EndColorStr=#ababab)";
runtimeStyle.borderRightStyle = "solid";
runtimeStyle.borderRightWidth = "1px";
runtimeStyle.borderRightColor = "#7b9ebd";
runtimeStyle.borderTopStyle = "ridge";
runtimeStyle.borderTopWidth = "1px";
runtimeStyle.borderTopColor = "#7b9ebd";
runtimeStyle.borderLeftStyle = "ridge";
runtimeStyle.borderLeftWidth = "1px";
runtimeStyle.borderLeftColor = "#7b9ebd";
runtimeStyle.borderBottomStyle = "ridge";
runtimeStyle.borderBottomWidth = "1px";
runtimeStyle.borderBottomColor = "#7b9ebd";
}
thanks for any help or advice
Philip
|
|
|
|
|
|
Using Javascript and CSS.
Hy Chanhan
|
|
|
|
|
BUT I SAVE THE PIC,PIC IS REALY ADD FRAME?
|
|
|
|
|
Stop screaming.
What are you meaning? What picture? What is it that the picture is?
---
b { font-weight: normal; }
|
|
|
|
|
I have 3 ASP.NET drop down lists:
Day/Month/Year
And i was wondering if i can use Javascript the add and remove dates from the day drop down list without posting back based on what month or if it was a leap year etc ?
Not sure if this post is in the right place as its both ASP.NET and Javascript... sory if its misposted.
Thanks.
|
|
|
|
|
Strictly speaking, you can not change the DropDownList using Javascript, as that control only exist on the server.
The DropDownList is rendered as a select list in the html code, and you can change the items in that element using Javascript.
The element has an attribute named options, that you can use to add, remove or change the items.
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
I have create one website, there address bar show query string values
(~/sample.aspx?PropertyID=10002).
But i don't want show propertyid values.
thanks
|
|
|
|
|
Then don't send them through querystring. Or if it is required to send querystring then you can also encrypt that.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Use POST method in forms instead of GET.
My english is not so good. Please, correct my errors.
Best regards, Alexey.
|
|
|
|
|
Hi I am trying to develop a business web site the development is happening on my local machine.
I am using Visual Studio 2005 - C# and ASP.NET 2.
When I press F5 to preview the page the images do not load.
I am also running Internet Information Services on Win XP Pro SP 2. I have shared the folder that has the solution files using IIS and Windows Explorer, but still the images will not show.
Really starting to do my head in....
Help please.
|
|
|
|
|
Hi Jagan,
Use Server.mappath(<pathname>) and check it. If you want to see the default path where you are? [Use Server.mappath("/")] print it and see. This may help you.
Regards,
Manowj
|
|
|
|
|
HI Manowj,
Sorry to sound stupid, but I am a little new to ASP adn devloping web applications, so if you could explain the use of Server.mappath() and [Use Server.mappath("/")] thanks.
I am using C# as the language code.
|
|
|
|
|
Jagannatha108 wrote: Server.mappath("/")
this will give you the path of the root directory.
server.mappath is used to get the physicial path of a particular directory.
Best Regards,
Apurva Kaushal
|
|
|
|
|
I have a table that has an opacity of 40 (making it partially transparent) but I do not know how to keep the tables content from not being transparent. I just want the tables background to be transparent but all of the text inside the table to be not. Any help with this please???? Thank you!
|
|
|
|
|
Do you have a link to the page so I can take a look at what you are trying to achieve?
I am not sure why you would need to make a table tranparent. It would help if I could see the context.
Words fade as the meanings change, but somehow, it don't bother me.
|
|
|
|
|
no its not live on the web yet. I just started a website for someone and am about to put up an under construction page. I figured it out though. I did not want the table entirely transparent, just partially. You know.... filter:alpha(opacity:40) I just wanted the entire background of the page visible even through my tables but when I put text in the tables or even images the text and images were also partially transparent. I wanted to make the text/images not transparent at all or 100% opacity. Do you understand what Im saying???
I searched through a million other forumns and found my question asked sooo many times it was rediculous but noone had an answer. It ended up I used DIV tags and two seperate layers. I made the first layer my transparent one and the second one I put on top with the images and text. I used absolute positioning to make it appear that the text/images were indeed inside the transparent table. Im sure there is a more efficient way but what the hell, it works!!! I tried pasting the code on here but it appears all funky and not all of it shows up. I dont know what the deal is. If you would like to see the code, give me your email address and I will send it to you...
Thank you for attempting to help me out though. I do appreciate it. Im sure I need some more help doing something else later. Have a blessed day!
-Joey
-- modified at 16:44 Thursday 17th August, 2006
|
|
|
|
|
Joey Picerno wrote: I tried pasting the code on here but it appears all funky and not all of it shows up.
Use the "Ignore HTML tags" option when you post html code.
---
b { font-weight: normal; }
|
|
|
|
|
I think you could also have wrapped the table with a DIV, and applied your a partial transparent background to that.
Have you tested it in Firefox, because I'm not sure the filter: alpha(opacity:40) thing works in Mozilla browsers? I think you also have to add just opacity:40 e.g
#Transparent
{
filter: alpha(opacity:40);
opacity:40;
}
You might also find that the positioning on the screen looks different in Firefox and Opera.
I don't use the opacity thing much myself though, so I might be wrong. I sure someone will correct me if I am.
Words fade as the meanings change, but somehow, it don't bother me.
|
|
|
|
|
I will try it out. Just so you know, I am very new to website/HTML stuff. I am a programmer for a software company and deal mainly with VB.NET and SQL Server. I just started to mess with HTML and building websites this past february. I recently completed my first website for a Title Company in Greensboro, NC. I still have a few things left to do on it but it is pretty much up and running. If you dont mind, look at it and tell me what you think (remember its my first website ever!!!) Heres the link...
www.ABtitle.com
Please be honest with me. I take constructive criticism well because I know it will only make me better at what I am trying to do so please give it to me straight. Anything, any advice or anything you can give me would be great. I have only tested it in Internet Explorer so use that to view it... Thank you for your help, and have a blessed day!
-Joey
|
|
|
|