The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How add floating ads in left and right vb4
welcome everybody
How add floating ads in left and right vb4 ? This code works PHP Code:
PHP Code:
Is there a way to fit with Style |
#2
|
|||
|
|||
|
#3
|
||||
|
||||
This information below will only work correctly on fixed width sites...
Say for example your site has a fixed width of 800px centered on the screen, and then your side banners are a width of 160px each. That will require a minimum of 1120px total to show everything (without any margins). Now, you can take into account a small margin between ads so everything doesn't show right on top of each other, so we'll add 80px (20px on both the left & right side of each ad) for a total of 1200px. We'll now need to write css code to say don't show those sidebar ads when the screen is less than 1200px wide. Code:
@media screen and (max-width: 1199px) { #RightFloatAds, #LeftFloatAds { display: none; } } |
2 благодарности(ей) от: | ||
Emad ELsayed, yilmaz |
#4
|
||||
|
||||
|
Благодарность от: | ||
Emad ELsayed |
#5
|
||||
|
||||
Quote:
Quote:
Everything is fine now I set the maximum width of 1000 Ad 2unit 160 and the total in 1250 Is this good for you ?? Best Regards Quote:
But when minimize the window size of the Forum ... It appears on the forums |
#6
|
||||
|
||||
Quote:
Using media screen can help in this case but note that when viewing your banner ads on smaller screens, they can hide a part of your content on right and left side. |
#7
|
||||
|
||||
Quote:
|
#8
|
||||
|
||||
Quote:
But you can develop it so that it can exclude Forum Best regards for your cooperation |
#9
|
||||
|
||||
Quote:
Attachment 155992 |
Благодарность от: | ||
KevinL |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|