Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-03-2009, 05:58 PM
Winterworks Winterworks is offline
 
Join Date: Feb 2008
Location: Canada
Posts: 640
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default end stylesheet...

In my FORUMHOME, I have this... (this is a small part)

Code:
  <link href="http://demo.yootheme.com/apr08/templates/yoo_ambient/favicon.ico" rel="shortcut icon" type="image/x-icon" />
  <link rel="stylesheet" href="http://demo.yootheme.com/apr08/plugins/system/yoo_effects/lightbox/shadowbox.css" type="text/css" />
  <link rel="stylesheet" href="http://demo.yootheme.com/apr08/templates/yoo_ambient/css/template.css.php?color=lighting&amp;styleswitcherFont=1&amp;styleswitcherWidth=0&amp;widthThinPx=790&amp;widthWidePx=990&amp;widthFluidPx=0.9" type="text/css" />
  <link rel="stylesheet" href="http://demo.yootheme.com/apr08/modules/mod_yoo_slider/mod_yoo_slider.css.php" type="text/css" />
  <link rel="stylesheet" href="http://demo.yootheme.com/apr08/modules/mod_yoo_drawer/mod_yoo_drawer.css.php" type="text/css" />
  <link rel="stylesheet" href="http://demo.yootheme.com/apr08/modules/mod_yoo_login/mod_yoo_login.css.php" type="text/css" />
  <link rel="stylesheet" href="http://demo.yootheme.com/apr08/modules/mod_yoo_accordion/mod_yoo_accordion.css.php" type="text/css" />

  <link rel="stylesheet" href="http://demo.yootheme.com/apr08/modules/mod_yoo_carousel/mod_yoo_carousel.css.php" type="text/css" />
  <link rel="stylesheet" href="http://demo.yootheme.com/apr08/modules/mod_yoo_toppanel/mod_yoo_toppanel.css.php" type="text/css" />
  <script type="text/javascript" src="http://demo.yootheme.com/apr08/templates/yoo_ambient/lib/js/mootools.js.php"></script>
  <script type="text/javascript" src="http://demo.yootheme.com/apr08/media/system/js/caption.js"></script>
  <script type="text/javascript" src="http://demo.yootheme.com/apr08/modules/mod_yoo_slider/mod_yoo_slider.js"></script>
  <script type="text/javascript" src="http://demo.yootheme.com/apr08/modules/mod_yoo_drawer/mod_yoo_drawer.js"></script>
  <script type="text/javascript" src="http://demo.yootheme.com/apr08/modules/mod_yoo_accordion/mod_yoo_accordion.js"></script>
  <script type="text/javascript" src="http://demo.yootheme.com/apr08/modules/mod_yoo_carousel/mod_yoo_carousel.js"></script>
  <script type="text/javascript" src="http://demo.yootheme.com/apr08/modules/mod_yoo_toppanel/mod_yoo_toppanel.js"></script>
  <script type="text/javascript">
var YtSettings = { tplurl: 'http://demo.yootheme.com/apr08/templates/yoo_ambient', color: 'lighting', layout: 'left', fontDefault: 'font-medium', widthDefault: 'width-wide', widthThinPx: 790, widthWidePx: 990, widthFluidPx: 0.9 };
  </script>
  <script type="text/javascript">var YOOeffects = { url: 'http://demo.yootheme.com/apr08/plugins/system/yoo_effects/lightbox/' };</script>
<script type="text/javascript" src="http://demo.yootheme.com/apr08/plugins/system/yoo_effects/yoo_effects.js.php?lb=1&amp;re=1&amp;sl=1"></script>
  <script type="text/javascript" src="http://demo.yootheme.com/apr08/templates/yoo_ambient/lib/js/template.js.php"></script>


</head>

<body id="page" class="yoopage font-medium width-wide left showright default yootools-black">

		<div id="absolute">
		<div class="transparent">
	<div id="yoo-toppanel-1" class="yoo-toppanel">

		<div class="panel-container" style="top: 0px;">
			<div class="panel-wrapper">
				<div class="panel" style="height: 340px; margin-top: -340px;">

					<div class="content" style="width: 600px;">
												





																		<div class="article">
<div><b>Message from Trasion Administrator(s):</b> Please invite all of your friends to Trasion, and get them active! We will always be having competitions on getting more member(s), so just visit the <a href="http://trasion.com/forum/forumdisplay.php?f=2">News and Announcements</a> board to view the latest competitions.</div>	</div>												<div class="article">
	<div class="width50 float-left">

  <div style="width: 250px; height: 180px; border: 10px solid #282828; background: url('images/toppanel/trasionlogin.gif')">
  </div>
</div>
<div class="width50 float-left">
  <div style="float: right; width: 250px; height: 150px; padding: 20px 10px 10px 10px; border: 10px solid #282828; background: url('http://demo.yootheme.com/apr08/images/yootheme/toppanel_login.jpg')">
    
<form action="http://demo.yootheme.com/apr08/index.php" method="post" name="login">

<span class="default" style="display: block;">
	<span class="yoo-login">
	
				
				
		<span class="login">
		
						
			<span class="username">

			
								<input type="text" name="username" size="18" alt="Username" value="Username" onblur="if(this.value=='') this.value='Username';" onfocus="if(this.value=='Username') this.value='';" />
								
			</span>
			
			<span class="password">
			
								<input type="password" name="passwd" size="10" alt="Password" value="Password" onblur="if(this.value=='') this.value='Password';" onfocus="if(this.value=='Password') this.value='';" />
								
			</span>

									<input type="hidden" name="remember" value="yes" />
									
			<span class="login-button-icon">
				<button value="" name="Submit" type="submit" title="Login"></button>

			</span>
			
						<span class="lostpassword">
				<a href="http://demo.yootheme.com/apr08/index.php?option=com_user&amp;view=reset">Forgot your password?</a>
			</span>
						
						<span class="lostusername">
				<a href="http://demo.yootheme.com/apr08/index.php?option=com_user&amp;view=remind">Forgot your username?</a>
			</span>
						
						<span class="registration">

				<a href="http://demo.yootheme.com/apr08/index.php?option=com_user&amp;task=register">Create an account</a>
			</span>
						
						
			<input type="hidden" name="option" value="com_user" />
			<input type="hidden" name="task" value="login" />
			<input type="hidden" name="return" value="aHR0cDovL2RlbW8ueW9vdGhlbWUuY29tL2FwcjA4Lw==" />
			<input type="hidden" name="c88491b62d3c408e14d10d09536eb85b" value="1" /><br />
		</span>
		
				
	</span>

</span>
</form>
  </div>
</div>	</div>											</div>
				</div>
			</div>
								
			<div class="trigger" style="left: 50%;">
				<div class="trigger-l" style=""></div>
				<div class="trigger-m">Login Box</div>

				<div class="trigger-r" style=""></div>
			</div>
		</div>
			
	</div>		
</div><script type="text/javascript">
// <!--
var panelFx1 = new YOOtoppanel('yoo-toppanel-1', { offset: 340, transition: Fx.Transitions.expoOut, duration: 500 });
panelFx1.addTriggerEvent('#yoo-toppanel-1 .trigger')
panelFx1.addTriggerEvent('#yoo-toppanel-1 .close');
// -->
</script>
<div style="position: absolute;	z-index: 20; top: 0px; left: 0px; width: 135px; height: 135px;">
	
</div></div>
etc...

Notice the bunch of stylesheets in the top? Well, I want them to somehow end after the last line of code I posted (the </div></div>) because after that, it's my forum, and it's really messing it up...

How can I end a stylesheet? To make it only affect the above code..
Reply With Quote
  #2  
Old 01-03-2009, 07:57 PM
GameWizard's Avatar
GameWizard GameWizard is offline
 
Join Date: Apr 2004
Location: Vancouver, BC
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To my understanding, it doesn't matter where you place the stylesheets. You can place them at the beginning or the end, it will still affect your place in the same way. The only thing you can change is the order of them. The most bottom css file will overwrite any others above. So your code should be near the bottom of the list, that way your code takes effect. However, your page may still be screwed up since there may be other code in the other stylesheets that's making your page go wonky, in which case you will have to figure out which one of them is causing it and remove/fix the code.
Reply With Quote
  #3  
Old 01-04-2009, 01:18 PM
Winterworks Winterworks is offline
 
Join Date: Feb 2008
Location: Canada
Posts: 640
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So... You cannot "end" a stylesheet? I only want it to affect that part of the page =/
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 04:56 AM.


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.03453 seconds
  • Memory Usage 2,203KB
  • 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
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)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_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