Google+

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Header banner
#1
as vrea sal mult din partea stanga si doresc sa fie pe centu , se poate ? si cum anume
#2
Metoda 1 doar cu HTML:

Code:
<center>
codul banner-ului tau
</center>


Metoda 2 cu HTML si CSS:

Code:
<div style="width: 728px; height: 90px; margin: 0 auto 0 auto;">
codul banner-ului tau
</div>


Cel mai bine ar fi sa inlocuiesti valorile lui width si height cu valorile banner-ului tau ( decat cifrele, fara px ).

#3
pff eu umploadam inuntru , ma gandeam ca poate o fi din admin cp prin templete pe undeva

ceva sa editez din templetul temei din header ca gasisem ceva in genu

<!-- logo -->
<a name="top"></a>
<a href="/"><img id="logo_image" src="mybbvn/lighting/images/logo.png" border="0" alt="Forum" /></a>
<!-- /logo -->
#4
Pai este in admin cp, incearca:

Code:
1
2
3
4
5
6
<center>
<!-- logo -->
<a name="top"></a>
<a href="/"><img id="logo_image" src="mybbvn/lighting/images/logo.png" border="0" alt="Forum" /></a>
<!-- /logo --> 
</center>

#5
nu a functionat Sad
#6
Posteaza o copie cu tot continutul header-ului din template-uri, te rog.
#7

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
<tr>
	<td>
	<div class="mybbvn_wrapper_t">
	<div class="mybbvn_wrapper_b">
	<div class="mybbvn_wrapper_l">
	<div class="mybbvn_wrapper_r">
	<div class="mybbvn_wrapper_tl">
	<div class="mybbvn_wrapper_tr">
	<div class="mybbvn_wrapper_bl">
	<div class="mybbvn_wrapper_br">

<!-- header -->
<div class="mybbvn_header">

<!-- logo -->
<a name="top"></a>
<a href="/"><img id="logo_image" src="mybbvn/lighting/images/logo.png" border="0" alt="Forum" /></a>
<!-- /logo --> 


<!-- date -->
<p class="smalltext" id="mybbvn_date">
<script language="JavaScript" type="text/javascript">
var days = new Array(8);
days[1] = "Sunday";
days[2] = "Monday";
days[3] = "Tuesday";
days[4] = "Wednesday";
days[5] = "Thursday";
days[6] = "Friday";
days[7] = "Saturday";
var months = new Array(13);
months[1] = "January";
months[2] = "February";
months[3] = "March";
months[4] = "April";
months[5] = "May";
months[6] = "June";
months[7] = "July";
months[8] = "August";
months[9] = "September";
months[10] = "October";
months[11] = "November";
months[12] = "December";
var dateObj = new Date(document.lastModified)
var wday = days[dateObj.getDay() + 1]
var lmonth = months[dateObj.getMonth() + 1]
var date = dateObj.getDate()
var fyear =+ dateObj.getFullYear()
document.write(wday + ", " + date + " " + lmonth + " " + fyear)
</script>
</p>
<!-- /date -->

</div>

<table border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
	<td width="10"><img src="mybbvn/lighting/images/menu_l.png" border="0" alt="menu_l" /></td>
	<td class="mybbvn_menu_portal"><a href="{$mybb->settings['homeurl']}">Home</a></td>
	<td class="mybbvn_menu_forum"><a href="{$mybb->settings['bburl']}/search.php">Search</a></td>
	<td class="mybbvn_menu_calendar"><a href="{$mybb->settings['bburl']}/memberlist.php">Members</a></td>
	<td class="mybbvn_menu_member"><a href="{$mybb->settings['bburl']}/calendar.php">Calendar</a></td>
	<td class="mybbvn_menu_help"><a href="{$mybb->settings['bburl']}/misc.php?action=help">Help</a></td>
	<td width="50"><img src="mybbvn/lighting/images/menu_r.png" border="0" alt="menu_r" /></td>
	<td width="100%"><span class="smalltext" style="float: right; color:#FFFFFF;">{$lang->welcome_current_time}</span></td>
	<td width="10"><img src="mybbvn/lighting/images/menu_l.png" border="0" alt="menu_l" /></td>
</tr>
</table>

<div id="container">

		<hr class="hidden" />
		<br class="clear" />
		<div id="content">
			{$pm_notice}
			{$bannedwarning}
			{$bbclosedwarning}
			{$unreadreports}<!-- ProfileComments -->
			{$commentalert}<!-- /ProfileComments -->
 {$headerannounce}
 
 

{$welcomeblock}

#8
Cauta in global.css urmatoarele si spune-mi cum sunt stilizate:

.mybbvn_header si #logo_image
#9
#logo_image

Code:
position: absolute;
top: 30px;
left: 0px;
margin: 0px;


.mybbvn_header

Code:
position: relative;
padding-top: 150px;


si cred ca mai e si
#logo_banner

Code:
position: absolute;
top: 60px;
right: 10px;
margin: 0px;

#10
La #logo_image incearca si modifica left: 0px;, creste-i valoarea, cu cat pui o valoare mai mare de 0 cu atat se va muta inspre dreapta mai mult. Incearca mai multe valori pana esti multumit de pozitionare, nu am de unde sa stiu eu sa iti zic cat sa pui pentru ca depinde si de tema ( incearca un left: 10px; ).


Forum Jump:


Users browsing this thread: 1 Guest(s)