vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Center problem (https://vborg.vbsupport.ru/showthread.php?t=325188)

mp3president 06-02-2017 07:20 AM

Center problem
 
Hi there,

I have a problem centering pictures on my website. The buttons for mediaplayer etc have to be centered for all resolutions
When i ajust it for myself it is fine, however people with a resolution 1920x1080 it is not right centered.

This picture is how it is on my PC

https://vborg.vbsupport.ru/external/2017/06/1.jpg

And this is de Code in ACP

Quote:

<td width="100%" style="padding-left: 490px">
<h3><img src="$stylevar[imgdir_misc]/winamp.png" alt="$vbphrase[scast_wa_listen]" border="0" hspace="4" /><a href="http://server.hotrodradio.nl:80/listen.pls">$vbphrase[scast_wa]</a>
<img src="$stylevar[imgdir_misc]/realplayer.png" alt="$vbphrase[scast_rp_listen]" border="0" hspace="4" /><a href="http://www.hotrodradio.nl/playlist/RealMediaPlayer.ram" onclick="window.open('$vboptions[forumhome].php?do=rp','rp','statusbar=no,menubar=no,toolbar= no,scrollbars=no,resizable=no,width=420,height=160 '); return false;">$vbphrase[scast_rp]</a>
<img src="$stylevar[imgdir_misc]/mediaplayer.png" alt="$vbphrase[scast_mp_listen]" border="0" hspace="4" /><a href="http://www.hotrodradio.nl/playlist/Livestream.html" onclick="window.open('$vboptions[forumhome].php?do=mp','mp','statusbar=no,menubar=no,toolbar= no,scrollbars=no,resizable=no,width=360,height=75' ); return false;">$vbphrase[scast_mp]</a>
<img src="$stylevar[imgdir_misc]/itunes.png" alt="$vbphrase[scast_qt_listen]" border="0" hspace="4" /><a href="http://www.hotrodradio.nl/playlist/itunes.pls" onclick="window.open('http://www.hotrodradio.nl/playlist/iTunes.pls','qt','statusbar=no,menubar=no,toolbar= no,scrollbars=no,resizable=no,width=330,height=70' ); return false;">$vbphrase[scast_qt]</a></h3>
</div>
</td>
And this is the picture on a 1920x1080

http://www.imghost.nl/download/bas2.jpg

Can anyone tell me what am i doing wrong?????
Been working on this for weeks now :confused:

Thank you verry much!!!
Sorry for my english :D

Dave 06-02-2017 12:16 PM

It's because you are defining a static value, padding-left: 490px.
Remove that and try text-align: center;

mp3president 06-02-2017 02:05 PM

Yes, that did the trick. I was so focused on image....

thanks for your help

Dave 06-02-2017 02:08 PM

No problem, succes met je forum. ;)

mp3president 06-02-2017 03:05 PM

Dank je wel Dave ;)


All times are GMT. The time now is 04:45 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01117 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete