הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   פורום תיכנות (https://hosts.co.il/forums/forumdisplay.php?f=14)
-   -   שאלה בHTML?? (https://hosts.co.il/forums/showthread.php?t=72867)

nissim.g 22-03-09 17:39

שאלה בHTML??
 
עשיתי מסמך HTML עכשיו יש login בצד שמואל של
הדף אני רוצה להעביר אותו לאמתע של הדף ניסיתי אם CENTER
לא עבד??


כתבתי גם שם משתמש וסיסמא ואימייל התיבות של הסיסמא והשם משתמש
הם באוו קו אבל התיבה של האימיל לא באותו קו איך אני שם אותה באותו קו??
דוגמא שתבינו
תיבה:שם משתמש
תיבה:סיסמא
תיבה:אימייל


HTML קוד:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir='ltr' xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
        <head>
        <title>WoW</title>
        <meta http-equiv="content-type" content="text/html; charset=windows-1255" />
        </head>
<body style="background-color: #AFEEEE; margin: 0;">

        <div style='background-color: #778899 ; width: 100%; height: 400px;'>
                <div style='float: center; font-family: arial; font-size: 36px; color:#00FFFF; padding-left: 25px; padding-top: 20px;'>
                <u>LOGIN</u>
                        <div style='float: center; font-family: arial; font-size: 18px;'>
                        fill user name.<br />fill password.
                        </div>
                </div>

                <div style='text-align: center; font-family: arial; font-size: 12px; padding-top: 150px;'>
                        <div style='background-color: #fafafa; width: 100%;'>
                                <div style='float: left; padding-top: 5px; color: #ff0000; padding-left:5px;'>USER-NAME</div>
                                <input type="text" name="text" />
                        </div>
                </div> 

                <div style='text-align: center; font-family: arial; font-size: 12px;'>
                        <div style='background-color: #fafafa; width: 100%;'>
                                <div style='float: left; padding-top: 5px; color: #ff0000; padding-left:5px;'>PASSWORD</div>
                               
                                <input type="password" name="password1">

                                <div style='text-align: center; font-family: arial; font-size: 12px;'>
                        <div style='background-color: #fafafa; width: 100%;'>
                                <div style='float: left; padding-top: 5px; color: #ff0000; padding-left:5px;'>MAIL</div>


                                <input type="mail" name="mail" />
                               
                <br><input type="button" name="button" value="שלח" onclick="window.open('http://webmaster.org.il');"><br>
                        </div>
                </div> 
        </div>

</body>
</html>


תודה מראש

daMn 22-03-09 17:52

הקוד שלא מסודר וקשה להתעסק איתו.
בכ"מ שים לב שיש לך מאפיין float בגלל זה הלוגין בצד שמאל.

תעבוד על קוד יותר מסודר.

nissim.g 22-03-09 18:35

תודה סידרתי את מאפיין float
בקשר לבעיה השניה??

bilopay 22-03-09 18:59

בישביל שזה יהיה באותו קו תישתמש בתוך הדיב בטבלה בישביל הטופס

nissim.g 22-03-09 19:13

אין דרך יותר פשוטה?

nissim.g 23-03-09 22:10

תראה עשיתי את הטבלה כמו שאמרת אבל אני לא טוב
כל כך בטבלאות אז הינה הקוד המשופר אם הטבלאות
HTML קוד:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir='ltr' xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
        <head>
        <title>WoW</title>
        <meta http-equiv="content-type" content="text/html; charset=windows-1255" />
        </head>
<body style="background-color: #FFDAB9; margin: 0;">

        <div style='background-color: #F5F5DC ; width: 100%; height: 400px;'>
                <div style='text-align: center; font-family: arial; font-size: 36px; color:#FFDAB9; padding-left: 25px; padding-top: 20px;'>
                <u>LOGIN</u>
                        <div style='float: center; font-family: arial; font-size: 18px;'>
                        fill user name.<br />fill password.
                        </div>
                </div>
                <table border="0"> 
                <tr> 

                <th><div style='text-align: center; font-family: arial; font-size: 12px; padding-top: 150px;'>
                        <div style='background-color: #fafafa; width: 100%;'>
                                <div style='float: left; padding-top: 5px; color: #ff0000; padding-left:5px;'>USER-NAME</div></th>
                                <td><input type="text" name="text" /></td>
                        </div>
                </div> 

                <th><div style='text-align: center; font-family: arial; font-size: 12px;'>
                        <div style='background-color: #fafafa; width: 100%;'>
                                <div style='float: left; padding-top: 5px; color: #ff0000; padding-left:5px;'>PASSWORD</div></th>
                               
                                <td><input type="password" name="password1"></td>

                                <th><div style='text-align: center; font-family: arial; font-size: 12px;'>
                        <div style='background-color: #fafafa; width: 100%;'>
                                <div style='float: left; padding-top: 5px; color: #ff0000; padding-left:5px;'>MAIL</div></th>


                                <td><input type="mail" name="mail" /></td>
                                </tr> 
                                </table>

                <br><input type="button" name="button" value="שלח" onclick="window.open('http://webmaster.org.il');"><br>
                        </div>
                </div> 
        </div>

</body>
</html>

תודה מראש על העזרה

nissim.g 15-04-09 23:31

מישהוכ חברה?

YinonOzery 16-04-09 01:53

HTML קוד:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir='ltr' xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
        <head>
        <title>WoW</title>
        <meta http-equiv="content-type" content="text/html; charset=windows-1255" />
        </head>
<body style="background-color: #FFDAB9; margin: 0;">

        <div style='background-color: #F5F5DC ; width: 100%; height: 400px;'>
                <div style='text-align: center; font-family: arial; font-size: 36px; color:#FFDAB9; padding-left: 25px; padding-top: 20px;'>
                <u>LOGIN</u>
                        <div style='float: center; font-family: arial; font-size: 18px;'>
                        fill user name.<br />fill password.
                        </div>
                </div>
                <table border="0"> 
                <tr> 

                <div style='text-align: center; font-family: arial; font-size: 12px; padding-top: 150px;'>
                        <div style='background-color: #fafafa; width: 100%;'>
                                <div style='float: left; padding-top: 10px; color: #ff0000; padding-left:5px; font-weight: bold; margin:0px'>USER-NAME</div>
                                <td><input type="text" name="text" /></td>
                        </div>
                </div> 

                <th><div style='text-align: center; font-family: arial; font-size: 12px;'>
                        <div style='background-color: #fafafa; width: 100%;'>
                                <div style='float: left; padding-top: 5px; color: #ff0000; padding-left:5px;'>PASSWORD</div></th>
                               
                                <td><input type="password" name="password1"></td>

                                <th><div style='text-align: center; font-family: arial; font-size: 12px;'>
                        <div style='background-color: #fafafa; width: 100%;'>
                                <div style='float: left; padding-top: 5px; color: #ff0000; padding-left:5px;'>MAIL</div></th>


                                <td><input type="mail" name="mail" /></td>
<td align="center"><input type="button" name="button" value="שלח" onclick="window.open('http://webmaster.org.il');"></td>
                                </tr> 
                                </table>
                        </div>
                </div> 
        </div>

</body>
</html>

תגיד לי אם עובד :)


כל הזמנים הם GMT +2. הזמן כעת הוא 20:11.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ