Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/mislz28/public_html/wp-content/themes/css-faq-v2/timeweather/timeweather.php on line 19
8 May 2008

forum

Current User: Guest Login Register
Please consider registering

Search 
Search Forums:


 




позиция текста в таблицах

UserPost

11:41 pm
June 10, 2008


uho

Member

posts 4

1

вопрос:
мне нужно сделать так, чтобы отображение в файрфоксе и опере было идентично эксплореру.

на картинках разница отображения…. как с этим бороться?


Код ХТМЛ
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>
<head>
<title>Untitled</title>
<link rel=stylesheet type=”text/css” href=”style_ff.css”
</head>

<body>
<table height=”100%” width=”100%” border=”0″ cellpadding=”0″ cellspacing=”0″>
<tr valign=”top” align=”center”>
<td height=”100px”></td>
<td width=”780px”>logo2 780px </td>
<td></td>
</td>
<tr>
<td colspan=”3″>
<!– главная таблица данных !–>
<table height=”100%” width=”100%” border=”0″ cellpadding=”0″ cellspacing=”0″>
<tr valign=”top” align=”center”>
<td width=”190px”>
<!– ********************************************************************************

****!–>
<!– ПЕРВАЯ КОЛОНКА !–>
<!– ********************************************************************************

****!–>
Навигация 190 px<br>
<!– ********************************************************************************

****!–>
<!– НАВИГАЦИЯ! –>
<!– ********************************************************************************

****!–>
<table width=”188px” border=”0″ cellpadding=”0″ cellspacing=”0″>
<tr valign=”top”>
<td width=”188px” height=”49px” background=”img\menu_border_up.jpg”>Про клан</td>
</tr>
<tr valign=”top”>
<td width=”188px” height=”31px” background=”img\menu_border_cen_na.jpg” class=”menu_navigation_style”><a href=”" class=”menu_navigation_link_style”>Новости</a></td>
</tr>
<tr valign=”top”>
<td width=”188px” height=”31px” background=”img\menu_border_cen_na.jpg” class=”menu_navigation_style”><a href=”" class=”menu_navigation_link_style”>Легенда</a></td>
</tr>
<tr valign=”top”>
<td width=”188px” height=”31px” background=”img\menu_border_cen_na.jpg” class=”menu_navigation_style”><a href=”" class=”menu_navigation_link_style”>Устав</a></td>
</tr>
<tr valign=”top”>
<td width=”188px” height=”23px” background=”img\menu_border_down.jpg”></td>
</tr>
</table>

<!– ********************************************************************************

****!–>
<!– КОНЕЦ НАВИГАЦИЯ! –>
<!– ********************************************************************************

****!–>

<!– ********************************************************************************

****!–>
<!– КОНЕЦ ПЕРВАЯ КОЛОНКА –>
<!– ********************************************************************************

****!–>

</td>
<td >
Переманные данные<br>


</td>
<td width=”160px”>банера или чото еще 160 px</td>
</td>
</table>
<!–конец главная таблица данных!–>
</td>
</td>
</table>


</body>
</html>

цсс Код

BODY
{
margin : 0px 0px 0px 0px;
color: #F5FFFA;
background-image : url(img/bg.jpg);
}
td.menu_navigation_style
{

}
a.menu_navigation_link_style
{
background-image : url(img/menu_border_cen_na.jpg);
height: 31px;
width: 188px;
color : #00008B;
font-family : Georgia;
font-size : 0.8em;
text-decoration : none;
padding: 8px 0 px 0px 39px;
}
a.menu_navigation_link_style:hover
{
background-image : url(img/menu_border_cen_a.jpg);
color : #0000CD;
}


12:04 am
June 11, 2008


genius

Member

posts 47

2

вариант, сначала обнулить все значения нужных свойств (не всегда помогает) т.е.

Код

margin : 0px;

padding: 0px;

height: 0px;

width: 0px;

и т.п.


а затем присваивать значения уже (заново)…

или еще вариант… изменить структуру ссылки, например

Код

<style>.menu_navigation_link_style

{

background-color : blue;

height: 31px;

width: 188px;

color : #00008B;

font-family : Georgia;

font-size : 15px;

text-decoration : none;

padding: 8px 0 px 0px 39px;

}

</style>

<td width=”188px” height=”31px” background=”img\menu_border_cen_na.jpg” class=”menu_navigation_link_style” onmouseover=”style.background='red';style.cursor='hand';” onmouseout=”style.background='blue'” OnClick=”location.href='index.html'”>Новости</td>



Reply to Topic: позиция текста в таблицах

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 6 + 1        (Required)

Topic Reply:


 

About the CSS-FAQ forum

Currently Online:

1 Guest

Maximum Online: 20

Forums:

Groups: 3

Forums: 18

Topics: 397

Posts: 834

Members:

There are 1050 members

There are 1 guests

Top Posters:

abc - 57

genius - 47

shane - 46

glowlite.uk - 39

booster - 37

warren - 35

Administrator: admin | Moderators: admin


© Simple:Press Forum - Version 3.1.1 (Build 336)