+ Reply to Thread
Results 1 to 4 of 4

Thread: chaning MAIN CSS of a style

  1. #1
    Senior Member Queen has disabled reputation
    Join Date
    Feb 2005
    Posts
    172

    chaning MAIN CSS of a style

    lets say i have two styles installed.

    style A and Style B.

    now if i want to use the MAIN CSS of Style B for Style A , then how can i move it over to A? or how can i change the MAIN CSS of A and use MAIN CSS of B?

    wats the easiest way of doing it.

  2. #2
    Senior Member RagingPenguin is on a distinguished road RagingPenguin's Avatar
    Join Date
    Apr 2004
    Location
    NC, USA
    Age
    41
    Posts
    863
    Set your board to cache css to files, then change the headinclude template, changin the following...

    <!-- CSS Stylesheet -->
    $style[css]
    <if condition="is_browser('opera')">
    <style type="text/css">
    ul, ol { padding-left:20px; }
    </style>
    </if>
    <!-- / CSS Stylesheet -->

    to this...

    <!-- CSS Stylesheet -->
    <link rel="stylesheet" type="text/css" href="/path/to/styles.css" />
    <if condition="is_browser('opera')">
    <style type="text/css">
    ul, ol { padding-left:20px; }
    </style>
    </if>
    <!-- / CSS Stylesheet -->

    replacing the path with the correct value. You can also use the @import syntax if you wish. All cached stylesheets will have the name and id of the style it's used for at the top of the file.

  3. #3
    Senior Member Queen has disabled reputation
    Join Date
    Feb 2005
    Posts
    172
    Set your board to cache css to files



    how exactly do i do that?

  4. #4
    Senior Member RagingPenguin is on a distinguished road RagingPenguin's Avatar
    Join Date
    Apr 2004
    Location
    NC, USA
    Age
    41
    Posts
    863
    AdminCP -> vBulletin Options -> Style & Language Settings
    Set "Store CSS Stylesheets as Files?" option to yes.

+ Reply to Thread

Similar Threads

  1. font size in main css
    By Chad in forum vBulletin 3.0 How Do I and Troubleshooting Forum
    Replies: 5
    Last Post: Fri 11th Mar '05, 8:34pm
  2. $style[css] and CSS as a File
    By Zachery in forum vBulletin 3.0 How Do I and Troubleshooting Forum
    Replies: 8
    Last Post: Sun 14th Nov '04, 11:07am
  3. Simple Main CSS question?
    By fiber in forum vBulletin 3.0 How Do I and Troubleshooting Forum
    Replies: 17
    Last Post: Sat 19th Jun '04, 6:06pm
  4. <body> main css padding deleted yet still shows
    By LLFan in forum vBulletin 3.0 How Do I and Troubleshooting Forum
    Replies: 3
    Last Post: Thu 29th Jan '04, 7:57pm
  5. Move a CSS Style from one style to another
    By Mac Write in forum vBulletin 3.0 How Do I and Troubleshooting Forum
    Replies: 0
    Last Post: Sat 14th Jun '03, 6:47pm

Bookmarks

Posting Permissions

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