Go Back   vb.org Archive > Community Discussions > Style and Graphics Requests (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-06-2011, 06:54 AM
marcopolo marcopolo is offline
 
Join Date: Dec 2005
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default div alignment

Strange image position problem.

When this page is first loaded, the images seems to be out of position compared to the 'click here' part until you select the article.

http://www.os-db.net/content.php?392-testing-area

and the code for the article, which I'm sure could do with amending!!

<div style="float: left;"TITLE="Your text description"></div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>

<div style="float: left;" TITLE="Your text description"></div><div style="float:left;"></div>

Maybe I'm not using the div tag to display it correctly
Reply With Quote
  #2  
Old 01-06-2011, 12:46 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You really need to put code between [CODE] and [/CODE] or [HTML] and [/HTML] BB Codes... I can't make heads or tails of what you posted above... I see some broken tags like
Code:
style="float:left;">
But I don't know if they're really broken or if the image is breaking them.
Reply With Quote
  #3  
Old 01-07-2011, 06:25 AM
marcopolo marcopolo is offline
 
Join Date: Dec 2005
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, not the best example. Thing is, I'm putting lots of div and /div to force the next images under the top image, is there a simpler way?
Reply With Quote
  #4  
Old 01-07-2011, 11:27 AM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by marcopolo View Post
Sorry, not the best example. Thing is, I'm putting lots of div and /div to force the next images under the top image, is there a simpler way?
Tons of ways actually just depends on how you want to go about it...

first off remove about 9000 of those <div>'s (kidding ) then let's show you how to do it in a better fashion .

Code:
<div style="margin-top:10px;margin-bottom:10px;"> Img code here etc </div>
Change the value of 10 to the number of pixels you want the "invisible space" to be .

OR

Code:
<div style="margin-bottom:20px;"> Img code here etc </div>
OR

Code:
<div style="padding:10px;"> Img code here etc </div>
OR

You can simply add in some <br />'s to accomplish the same thing but it's better to use some defining attributes so it's a near perfect match in all browsers but here's a example:

Code:
<div style="margin-top:10px;margin-bottom:10px;"> Img code here etc plus these breaks after the code and before the ending div  <br /><br /></div>
Now, there's other ways some might come in here and post an alternative or not, some might have their own little tricks to do something in a clever way etc the best bet for you imo, is to learn some simple CSS then you'll be able to manipulate the appearance of your articles and your site overall .

http://www.w3schools.com/css/default.asp
Reply With Quote
  #5  
Old 01-08-2011, 06:56 AM
marcopolo marcopolo is offline
 
Join Date: Dec 2005
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks very much for the help, it was the br that I was trying to recall.

Incidentally, why do the images show out of alignment in the section showing the article, but click on the article and the images are fine http://www.os-db.net/content.php?391-test-area
Reply With Quote
Reply


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


All times are GMT. The time now is 03:06 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.04288 seconds
  • Memory Usage 2,202KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete