vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   CSS Question (https://vborg.vbsupport.ru/showthread.php?t=145807)

intricatic 04-26-2007 11:48 AM

CSS Question
 
Hi, I have an issue with CSS. I want to add a table at the very top of my site with links in it, and I want to add a background image to the table. How would I go about doing something like this on vbulletin?

nexialys 04-26-2007 12:20 PM

hum, actually you are messing CSS with tables...

CSS is WITHOUT tables...

you have to edit the template "header" to add the table you want...

CyberAlien 04-26-2007 02:08 PM

Quote:

Originally Posted by nexialys (Post 1235825)
CSS is WITHOUT tables...

Nope. CSS doesn't mean without tables. CSS is for styling, it can be applied to anything, including tables.

Princeton 04-26-2007 02:42 PM

yep, CSS is for presentation (style) not content (structural elements/data)

with that said, I do believe that the thread poster is confusing some terms

no mods 04-26-2007 05:01 PM

Set an Image as Background:
Code:

<html>
<head>

<style type="text/css">
body
{
background-image:
url('bgdesert.jpg')
}
</style>

</head>

<body>
</body>

</html>


Create A Horizontal Menu:
Code:

<html>
<head>
<style type="text/css">
ul
{
float:left;
width:100%;
padding:0;
margin:0;
list-style-type:none;
}
a
{
float:left;
width:6em;
text-decoration:none;
color:white;
background-color:purple;
padding:0.2em 0.6em;
border-right:1px solid white;
}
a:hover {background-color:#ff3300}
li {display:inline}
</style>
</head>

<body>
<ul>
<li><a href="#">Link one</a></li>
<li><a href="#">Link two</a></li>
<li><a href="#">Link three</a></li>
<li><a href="#">Link four</a></li>
</ul>



</body>
</html>

Mess around with those two things in notepad or whatever you use, hope thats what you were talking about.


All times are GMT. The time now is 11:21 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.01545 seconds
  • Memory Usage 1,718KB
  • 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
  • (2)bbcode_code_printable
  • (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