|
Hi,
I have 2 divs next to each other. They are each 50% wide. It works fine. In the left div I have a header text which is 20px, and in the right div I have text that is 13px. Now because the left div is higher, the right div's text is displayed at the top, it's not vertically centered. How do I get the right div to display in the middle vertical alignment? I tried vertical-alignment:middle but it does not work.
Please can someone help?
Thanks
Brendan
|
|
|
|
|
1. The two div should with a height, 100px for example.
2. 'display:table-cell' and 'vertical-align:middle' can help you.
3. The test code is as follow, it OK with IE6, more please email me.
4. It maybe sorry that my english is poor.
<code>
<style type="text/css">
.main {
width : 100%;
height : 100px;
display : table-cell;
vertical-align : middle;
}
.mydiv {
width : 50%;
float : left;
border : 1px solid #0099cc;
}
.leftfont {
height : 100px;
font-size : 20px;
font-weight : bold;
}
.rightfont {
height : 100px;
font-size : 13px;
font-weight : normal;
}
.fixie {
width : 0;
height : 100%;
display : inline-block;
vertical-align : middle;
}
</style>
<div class="main">
<div class="mydiv leftfont">
I am Kexian Li
</div>
<div class="mydiv rightfont">
<span class="fixie"></span>
Hi, I am a Chinese, welcome to china!
</div>
</div>
</code>
Welcome to China.
|
|
|
|
|
Hi, I have generated proxy class from WSDL and I want to apply breakpoint in the proxy class. When i do it, i never reach there. Can it be possible to do it ?
thanks in advance !
|
|
|
|
|
I'm trying to debug a third party web service by examining all the data sent to and from the 3rd party via their web service. Does anyone know of any good tools that I can use to examine the data being sent between my web application (I'm consuming the web service in a web application) and the 3rd party.
I tried Fiddler2 but, while it shows my pages requests, it does not show the web service requests.
|
|
|
|
|
|
Hi all,
i have a problem with jquery tabs.my scenario is that in my asp.net form using jquery tabs library.I have three tabs and one post button,post button on third tab when i click post button tabs reloaded then returning first tab. How can i solve this issue? any suggestions?
My code is:
<script type="text/javascript" language="javascript"><br />
$(document).ready(function() {<br />
$("#example > ul").tabs();<br />
});<br />
</script>
thx for your replies.
Delphi,Php,C# Junior Developer
"Humans coded by DNA language"
|
|
|
|
|
Hey everyone,
I need some help with displaying a flash application on an embedded HTML control. I'm using the example that I got from Jeff Glatt. Everything can be viewed here: http://www.codeproject.com/KB/COM/cwebpage.aspx. I can go to different sites but I was wondering if anyone would know how to embed a flash application onto the the embedded HTML control. Many thanks to anyone who can help me cause I could really use some right now.
|
|
|
|
|
I am so dumb... I should have place this in the discussion on the article.... sorry.
|
|
|
|
|
Have you tried this code :
<embed height="30" width="60" quality="high" bgcolor="#9772CF" src="http://sharemation.com/sanam77/golchehreh.swf"/>
|
|
|
|
|
Good morning,
I need some help with a code in vbscript using mswinsock object, what am trying to do is to send a charater string to a server listening and get a response to that, the problem is that i can´t make the winsock object connect to the server, i cant make it in server code (php, asp, jsp) because this vbscript will be running in a IVR (interactive voice response) tha handles vbscript code, i can´t create a socket object in the IVR code because their lazy designers (sorry am not saying the brand of the IVR) say it is too complicated and instead they have an vbscript emulator for things like that, so i have to debug the vbscript code in a web page because it is easier, and once i have the script in the webpage running fine i can move it to the IVR, am posting the code to see if anyone has any idea of why the object isn´t connecting, and i know am being too restrictive but i can´t use anything but mswinsock because the client doesn´t want to use third party components because they are expensive and with the mswinsock it must work. By the way thanks in advance.
after a very long explanation here is the code:
<br />
<br />
<br />
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"><br />
<head><br />
<title>New document</title><br />
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /><br />
<br />
<script type="text/vbscript"><br />
Sub socket()<br />
dim hostname<br />
dim port<br />
dim profesional<br />
dim recibir<br />
<br />
<br />
hostname = "192.168.1.32"<br />
puerto = 12013<br />
<br />
MsgBox("works until here")'<br />
set winsock = createobject("MSWINSOCK.Winsock")<br />
<br />
MsgBox("works until here 2")'<br />
puerto = 12013<br />
winsock.RemoteHost = hostname 'direccion ip del host remoto<br />
winsock.RemotePort = puerto 'numero del puerto por el que se envian los datos<br />
winsock.Connect<br />
<br />
MsgBox("works until here 3")'<br />
<br />
<br />
mensaje = "Sending test message"<br />
If winsock.State = sckConnected Then<br />
winsock.SendData profesional<br />
MsgBox("message sent")'<br />
else<br />
MsgBox("the socket isn´t connected")'<br />
End If<br />
End Sub<br />
'AES.SetReturnValue 0<br />
</script><br />
</head><br />
<body><br />
<br />
<br />
<button onclick="socket()">press here</button><br />
<br />
</body><br />
</html><br />
one last thing, forgive my english because it isn´t my primary language
Life can only be understood in reverse bur must be lived forward
|
|
|
|
|
I am working on one site that having a huge database and i need to find dupliacte pages in it...can any body suggest how get that...as its imposible to search it on by one...
GMI a Software Development Company has undertaken extensive projects, empowering the wireless revolution with innovative solutions aimed at enhancing user experience. GMI is independent solution providers in web portal development & Offshore software development.
|
|
|
|
|
If you use SQL databases you should use SQL query for find them.
Like this :
SELECT DISTINCT * FROM tableName
|
|
|
|
|
Hello every one,
Guys does anyone know how to create or upload and connect to sql database in godady.com, just any how any way please...., my problem is that I don't know how to properly copy my local host database to the public server which godady. Connection method is provided as a fixed connection string with already set username, but there is no way of uploading specifically for a database that can be connected accept the asp schema. Please help.
hawari
hawari
|
|
|
|
|
Hi,
When is it wise to use em and px? If I want to have a spacer beneath my breadcrumbs, I set the width beneath it to 10px. Is it wiser to use em?
Brendan
|
|
|
|
|
.NET Enthusiast wrote:
When is it wise to use em and px?
As far as I know :
When we use PX , the size of our texts is always fix.
But if we use em , the size of our texts is variable .
|
|
|
|
|
em is relative, px is absolute. If you have a person who uses 120dpi as their display resolution (96dpi is the norm) then px will look smaller. I think the recommendation is to use relative sizes so it is all the same size regardless of the device.
|
|
|
|
|
Hi coders,
I dont know if this question is suitable with this forum because I dont know my problem is causing because of ASP.NET or it is some CSS problem.
I am working on .NET 3.5. I have a .aspx page with lots of DIVs. When I run my project, it rus properly and displyed properly if my screen resolution is 1024*768... but when i change my screen resolution to any other value, some DIVs move here n their randomly. I couldnt figure out the reason after many tries. I am sure my HTML coding is perfect ( all DIVs and other tags are closed properly).
I would be thankful for any help and concern.
Thanks,
Anand Desai
Developer
Atharva Infotech
|
|
|
|
|
I think so , you couldn't use CSS codes as well.
These problems almost always occur when we didn't use CSS code as well.
|
|
|
|
|
I have an ASP.NET (2.0) site. I am on my dev box using V Studio 2008 and IIS. I have a separate User Control project that gets called from a javascript function in the default.aspx page. The User Control project is in another solution.
The application is running as expected. The user control is being called and all is well. Well not quite.
I am unable to step into the User Control project, i.e debug it. I can set breakpoints but they never get trapped. I can debug all other areas of the site both in script and code behind without any problems. The User control gets built in DEBUG to the same location as the default.aspx page.
Things i have already tried:
Enabled script debugging in IE.
Added the User Control project to the same web site solution
Attached debugger to running instance of IE from Visual Studio
Enabled debugging on the site.
Below is some sample code which should help:
default.aspx: (Cut down for brevity)
<body onload="LoadMethod()"style="background-color:#f4eedf; font-size: 12px; font-family: Verdana;margin:0 0 0 0;">
<object id="LoadControl" style="width: 1px; height: 1px" classid="Nice.Inform.Client.WebLoad.dll#Nice.Inform.Client.WebLoad.LoadControl">
<param name="ApplicationPath" value="ClientApps/NiceInform.exe" />
<asp:Literal ID="NewCodecVersion" runat="server"></asp:Literal>
<asp:Literal ID="CodecProductCode" runat="server"></asp:Literal>
</object>
<script type="text/javascript">
function LoadMethod()
{
try
{
LoadControl.Ping();
}
catch (e)
{
}
}
Please only give feedback if you have actually done this in practice.
|
|
|
|
|
Dear Techies,
Please help me out in resolving the following issue.
My application is working fine in IE but not in Firefox.
1. Link buttons are not working (doPostback)
2. Calendar control is not working
3. All the Validations are not working
Note: I created an application, having master page.
Regards,
Sanjai.
|
|
|
|
|
Hello I m also face same problem till now can't get solution. But in my system firefox first time not support some after some attempt it will work perfectly. U also try this...
|
|
|
|
|
Try to debug using Firefox and verify that the events are firing.
|
|
|
|
|
Hello guys i m doing one website in asp.net. In program I don't have any problem. my problem is Design, color combination and photo modification.
plz any one tell me abt how to do... or any website is there it's to learn such things.
Ananda.
|
|
|
|
|
There is a site www.rentacoder.com which have programmers and designers that you can pay very reasonable fees to that would be able to help.
You need to be looking at books on:
CSS,
DHTML,
Photoshop or Paint shop Pro.
Regards
Carl
|
|
|
|
|
I second what Carl said. Pick up a few books on the doing web design. Once you have it mastered well, then it is another skill you can add to your resume.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|