vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v4.0 Support > Troubleshooting & Problems

Reply
 
Thread Tools Display Modes
  #1  
Old 07-22-2012, 02:12 PM
vivapotenza vivapotenza is offline
Junior Member
 
Join Date: Jun 2012
Posts: 5
Default viewing at varying resolutions/screen sizes.

Hello everyone.

Im hoping somebody will be able to offer some guidance on a small issue im having trying to setup a "welcome" message on my CMPS system.

The way i have set it up is using html coding to create two tables, one containing an image, and another table to the right of it containing text.

This appears correct to me, and a lot of other people. however when i log on on my mobile, or set my screen resolution lower than at present, it messes with the formatting and causes the image to run into the text. like so:



The full version can be seen here:

http://www.vivapotenza.com/index.php

And this is the code I have used to create it the way I have:

Code:
<div style="float: left; width: 5%;">
<img  style="width: 100px; height: 100px; text-align: left;" alt="" src="/images/tp.jpg" align="left"></div>


<div style="float: right; width: 87%;">
Welcome to Viva Potenza! The web's newest motoring forum. We are a non brand specific, non model specific, non power specific site. In other words we don't care what you drive or ride, we don't care what it looks like or how fast it goes. What we do care about is making a 'safe haven' for petrolheads across the globe to talk cars, bikes, trucks or anything else, and not feel like they have to prove themselves in the horsepower stakes. We'd love it if you registered and shared your experiences with us, it's totally free! We have everything from mega restorations to slight modifications, and the odd terrible joke in between. <p></p><p>We look forward to chatting with you. </p><p>Regards,<br><br>Team Potenza
</p></div>
The reason for the 87% width on the right is to space out the text enough from the image, so i suspect this is the problem, or it could be coded differently to resolve this problem, but i am a relative noob to all this and so its the best i could do

Hopeully one of you fellas who is more clued up on css and html can offer a simpler way to do it that will wrap the text correctly, whilst still offering a slight gap between image on left, and text on right, no matter what the screen size is.

Thanks in advance.

Mick
Vivapotenza.
Reply With Quote
  #2  
Old 07-24-2012, 03:41 PM
vivapotenza vivapotenza is offline
Junior Member
 
Join Date: Jun 2012
Posts: 5
Default

its ok, found an answer to this eventually, made it in the VBa software rather than in HTML and it now wraps the text properly
Reply With Quote
  #3  
Old 07-26-2012, 10:54 AM
Dragonsys Dragonsys is offline
Senior Member
 
Join Date: Jan 2008
Location: Atlanta, GA
Posts: 444
Default

the problem is with the floating divs, you need to use a wrapper.

Code:
<div id="container">
<div style="float: left; width: 5%;">
<img  style="width: 100px; height: 100px; text-align: left;" alt="" src="/images/tp.jpg" align="left"></div>


<div style="float: right; width: 87%;">
Welcome to Viva Potenza! The web's newest motoring forum. We are a non brand specific, non model specific, non power specific site. In other words we don't care what you drive or ride, we don't care what it looks like or how fast it goes. What we do care about is making a 'safe haven' for petrolheads across the globe to talk cars, bikes, trucks or anything else, and not feel like they have to prove themselves in the horsepower stakes. We'd love it if you registered and shared your experiences with us, it's totally free! We have everything from mega restorations to slight modifications, and the odd terrible joke in between. <p></p><p>We look forward to chatting with you. </p><p>Regards,<br><br>Team Potenza
</p></div>
<!-- Clear floats -->
<div style="clear: both;"></div>
<!-- Close container -->
</div>
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Column Sizes oddball118 "How Do I..." Questions 3 03-04-2011 05:10 PM
Change the game resolutions...... LDN Troubleshooting, Problems, Questions 0 08-28-2009 11:40 AM
How to display same content for people with different monitor resolutions? cowcowcow "How Do I..." Questions 4 08-15-2009 07:01 AM
Modules different sizes in IE 8, but not FF Chimpie Troubleshooting & Problems 4 06-22-2009 03:22 PM
Column Sizes Morrow Add-On Modules & Modifications 1 12-01-2004 02:35 PM


All times are GMT -4. The time now is 03:48 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.