Jump to content

zeidhaddadin

Members
  • Posts

    86
  • Joined

  • Last visited

Posts posted by zeidhaddadin

  1. Hi all,I'm wondering how can i do two types of Hover for links in one page..I want to give 1 link a special hover effect and the others another effects.This is for all in page:a:link, a:active, a:visited {color : #FFFFFF;}a:hover {color : #000000;}

  2. I usually use margins to set the position of tables inside the page .. But i don't know if there was something to make the table in the center.You can use this:table {margin-top = whatever px;}

  3. Hi all,I have an ASP.NET application which is a combination of vb code and normal xhtml lines, I need to validate this page as XHTML Strict .. I tried but ofcourse I got many erros because of the vb and .net lines .. is there anyway to do this..I tried using <!-- --> the comments but it didn't let the page run the vb code.Thanks very much,zeid

  4. It includes asp.net code:<p class="p2"><br /></p><table cellpadding="0" cellspacing="0" border="0"><tr><td class="td1"> </td></tr><tr><td class="td2"> </td></tr></table><form runat="server"><asp:Repeater id="Table" runat="server"><HeaderTemplate><table cellpadding="0" cellspacing="0" border="0"></HeaderTemplate><ItemTemplate><tr><td class="td2"><p><a href="<%#Container.DataItem("url")%>"><%#Container.DataItem("url")%></a></p><p><%#Container.DataItem("desc").Replace(search,"<b>" & search & "</b>")%></p></td></tr></ItemTemplate><FooterTemplate></table></FooterTemplate></asp:Repeater></form><table cellpadding="0" cellspacing="0" border="0"><tr><td class="td2"> </td></tr><tr><td class="td1"> </td></tr></table><p class="p1">© 2007, <a href="INDEX.aspx">HOME PAGE</a> - Powered by <a href="http://www.ze1d.com/">ze1d</a></p></body>

  5. Hi all, I'm using this css:<code>p {font-family : verdana;font-size : 12px;margin : 1em 0;}.p1 {font-size : 11px;text-align : center;}.p2 {text-align : center;}table {width : 100%;}.td1 {height : 25px;background-color : #F6F6F6;margin : 1em 0;}.td2 {width : 550px;height : 20px;text-align : justify;margin : 1em 0;}a:link, a:active, a:visited {color : #0000FF;}a:hover {color : #567CBA;}</code>There is an attribute "table" which have a width 100%And In .td2 I have width : 550px;(So in other td's classes the width is 100% (by default) but with td2 its only 550px ..)This is working fine in IE but with firefox it's ignoring the 550px and showing it as 100%...Is there anyway to fix this,Thanks very much,zeid

  6. Hi all,How can I do something like: Putting a link on the top of the page ---> also align it to the most left of the page .. something like "LOGOUT" or "LOGIN" where usually is placed at that position (Top, most left, most right something like this)..I don't want to use tables or things, I want to use css to put there, BUT it should look the same with EI and FireFox.Thanks very much,zeid

  7. Hi all,I'm using the following table and form with Strict XHTML DTD:

    <table cellpadding="0" cellspacing="1" border="0"><tr><td class="td1"><p class="p2"><a href="INDEX.aspx">HOME</a></p></td><td class="td1"><p class="p2"><a href="SERVICES.aspx">SERVICES</a></p></td><td class="td1"><p class="p2">CONTACT US</p></td><td class="td2"> </td></tr></table><form method="post" action="CONTACTPROCESS.aspx"><table cellpadding="0" cellspacing="0" border="0"><tr><td class="td3"><p>E-mail:</p></td></tr><tr><td class="td3"><input type="text" size="25" name="email" /></td></tr><tr><td class="td3"><p>Message:</p></td></tr><tr><td class="td3"><textarea cols="30" rows="5" name="message"></textarea></td></tr><tr><td class="td4"><input type="submit" value="Send Message" /></td></tr></table></form>

    When I open the page using INTERNET EXPLORER I see a space between the first table and the second one because of the form tag between them.When I open it with FIREFOX it looks fine ..Can someone please tell me how to fix this problem ...Thanks very much,zeid

  8. You know what, I figured that the problem is from the DTD .. When I removed it from the page and Opened it in Internet Explorer 6 ---> the tables moved to the left of the page .. But when I used in FireFox it was perfect.So can you please help me fix this and still use the Strict XHTML data type.Thanks very much

  9. Sorry That one was not the problem.. For example look If I used two tables .. You will see a more space in firefox.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html><head><title>zeid1</title><meta http-equiv="content-type" content="text/html; charset=UTF-8" /><link type="text/css" rel="stylesheet" href="Style.css" /></head><body><p class="p2"><br /><script type="text/javascript"><!-- google_ad_client = "pub-7031347571081761";google_ad_width = 728;google_ad_height = 90;google_ad_format = "728x90_as";google_ad_type = "text";google_ad_channel = "";google_color_border = "006699";google_color_bg = "FFFFFF";google_color_link = "0000FF";google_color_text = "000000";google_color_url = "008000";//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></p><table cellpadding="0" cellspacing="1" border="0"><tr><td class="td1"><p class="p2"><a href="INDEX.aspx">HOME</a></p></td><td class="td1"><p class="p2"><a href="SERVICES.aspx">SERVICES</a></p></td><td class="td1"><p class="p2"><a href="CONTACT.aspx">CONTACT US</a></p></td><td class="td2"> </td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td class="td3"><p class="p2">Welcome</p></td></tr><tr><td class="td3"><p class="p2">To my website</p></td></tr></table></body></html>

  10. Ok here is the whole html code (note: I'm using Google adsense):

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html><head><title>zeid1</title><meta http-equiv="content-type" content="text/html; charset=UTF-8" /><link type="text/css" rel="stylesheet" href="Style.css" /></head><body><p class="p2"><br /><script type="text/javascript"><!-- google_ad_client = "pub-7031347571081761";google_ad_width = 728;google_ad_height = 90;google_ad_format = "728x90_as";google_ad_type = "text";google_ad_channel = "";google_color_border = "006699";google_color_bg = "FFFFFF";google_color_link = "0000FF";google_color_text = "000000";google_color_url = "008000";//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></p><table cellpadding="0" cellspacing="1" border="0"><tr><td class="td1"><p class="p2"><a href="INDEX.aspx">HOME</a></p></td><td class="td1"><p class="p2"><a href="SERVICES.aspx">SERVICES</a></p></td><td class="td1"><p class="p2"><a href="CONTACT.aspx">CONTACT US</a></p></td><td class="td2"> </td></tr></table><p class="p1"><br /><br /></p><p class="p1">© 2007, zeid1</p></body></html>

    And the Stylesheet the same.

  11. Ok for example:HTML:

    <body><table cellpadding="0" cellspacing="1" border="0"><tr><td class="td1"><p class="p2"><a href="INDEX.aspx">HOME</a></p></td><td class="td1"><p class="p2">SERVICES</p></td><td class="td1"><p class="p2"><a href="CONTACT.aspx">CONTACT US</a></p></td><td class="td2"> </td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td class="td3"><p class="p2">These are our services:</p></td></tr><tr><td class="td3"><p class="p2">1- blahblah</p></td></tr></table></body>

    CSS File:p {font-family : Verdana;font-size : 12px;}.p1 {font-size : 11px;text-align : center;}.p2 {text-align : center;}table {margin : auto;}.td1 {background-image : url("images/bg1.gif");width : 110px;height : 35px;text-align : center;}.td2 {background-image : url("images/bg1.gif");width : 300px;height : 35px;}.td3 {width : 630px;height : 25px;}

  12. Hi all,I'm trying to make a page in STRICT XHTML using css and tables, As you all know that in tables we should not assign width and hight in the table data directely (As in non-strict html type) .. You should use css to do it for you like for example: .td1 {width: 700px; height : 25px; } ..Anyways, When I use this way (CSS) and I open the page using Internet explorer .. I see it perfect as I want.BUTWhen I open it in Firefox it looks really different I mean there is a lot more space between each row (As if 25px in IE is smaller than 25px In FF).Can someone please tell me how to make it look the same in both browsers.Thanks very much,zeid

  13. Hi all, I have an image (As a site menu) And I have made a "map" on it so I can click on each part of it, But when I tried using it with FireFox it didn't go to anywhere .. it just click without opening a page.This is my full html code:

    <html><head><title>Tecnica Jordan</title><meta http-equiv="content-type" content="text/html; charset=UTF-8" /><link type="text/css" rel="stylesheet" href="Style.css" /></head><body><map id="Menu"><area shape="rect" coords="282,27,349,61" href="Index.html" alt="HOME PAGE" /><area shape="rect" coords="359,27,464,61" href="About.html" alt="ABOUT US" /><area shape="rect" coords="476,27,677,61" href="Partners.html" alt="BUSINESS PARTNERS" /><area shape="rect" coords="686,27,811,61" href="Contact.html" alt="CONTACT US" /></map><center><table cellpadding="0" cellspacing="0" border="0"><tr><td width="800" align="center"><img src="images/Header.gif" usemap="#Menu" border="0" /></td></tr><tr><td width="800" height="100"> </td></tr></table></center><p class="p1">© 2007, Tecnica Jordan</p></body></html>

  14. Thank you jesh.I know how to connect to a database but Sometimes when I compile my aspx page it gives me a warning that I should declare my variables As "something" like Dim a As Integer ...I need to know what to declare my data reader variable.Thanks,zeid

×
×
  • Create New...