Css styling in a facebook app that are made in Ruby <HELP>

Discussion in 'CSS' started by Capone25, Jan 11, 2010.

  1. #1
    I help a friend out with a facebook app, that are made in ruby.
    The problem is:

    Basic styling with css is working ok..
    But, we want to use html in it.. So we can make a more dynamic look on the game..

    Is this possible? The whole system is weird. Only possible styling solution is a css file that works togheter with a layout position file.

    Example of the app file:


    <fb:fbml>
      <script>
        root_url = '<%= root_url(:canvas => false) %>';
      </script>
    
      <%= editable_stylesheet_link %>
    
      <% if Rails.env.development? %>
        <script>
          <%= raw File.read(File.join(RAILS_ROOT, "public", "javascripts", "facebooker.js")) %>
    
          <%= raw File.read(File.join(RAILS_ROOT, "public", "javascripts", "application.js")) %>
        </script>
      <% else %>
        <%= javascript_include_tag "facebooker", "application" %>
      <% end %>
    
      <%= render :partial => "layouts/admin/main_menu" %>
    
      <div id="content">
        <div id="header">
          
    
          <%= render :partial => "layouts/main_menu" %>
    	  <%= link_to("&nbsp;", root_path, :id => :logo) %>
    	  <%= render :partial => "layouts/bottom_menu" %>
          <%= render :partial => "layouts/character_overview" %>
          <%= render(:partial => "layouts/tip") if current_user.show_tips? %>
        </div>
    
        <% flash_block do |message| %>
          <%= fb_i(message) %>
        <% end %>
    
        <input type="text" style="width: 1px; height: 1px; border:0px;" id="top_field"/>
        
        <%= render :partial => "layouts/spinner" %>
    
        <%= content_tag(:div, yield(:result), :id => :result, :style => ("display:none" if @content_for_result.blank?)) %>
    
        <%= render "tutorials/block" if current_user.show_tutorial? %>
    
        <%= yield %>
      </div>
    
      <script><%= yield :script %></script>
      
      <%= fb_google_analytics(Configuration[:app_google_analytics_id]) unless Configuration[:app_google_analytics_id].blank? %>
    </fb:fbml>
    Code (markup):

    Help on this is preciated!

    -Thomas
     
    Capone25, Jan 11, 2010 IP