Please I Need Help With This Bit Of Code Css/html

Discussion in 'CSS' started by romioaa, Feb 6, 2013.

  1. #1
    Please see the code below this document works with css and there is a piece of code {$item.description} I want to change its color to white. I tried changing it from the css and every time I change it from the css it also change this peace of code to white: <p class="left mt3" >ID: {$item.id} | Purchases: {$item.sales} | Price: {$currency.symbol}{$item.price}</p>

    So I only want to change this {$item.description} to white. I tried changing the class and adding a new code to the css and did not work.

    Please help me



    {include file="$root_path/modules/items/views/_fancypanel.html"}
    <div class="clr"></div>
    {if isset($paypal_show)}
        <div class="box-warning">{$lang.paypal_proceed}</div>
     
        <form id="form" action="{$paypal.url}" method="post">
            <input type="hidden" name="cmd" value="_ext-enter">
            <input type="hidden" name="redirect_cmd" value="_xclick">
            <input type="hidden" name="business" value="{$paypal.business}">
            <input type="hidden" name="item_name" value="Buy {$item.name|escape}">
            <input type="hidden" name="currency_code" value="{$currency.code}">
            <input type="hidden" name="no_shipping" value="1">
            <input type="hidden" name="no_note" value="1">
            <input type="hidden" name="notify_url" value="http://{$domain}/{$languageURL}items/paypal/notify/">
            <input type="hidden" name="return" value="http://{$domain}/{$languageURL}items/paypal/success/">
            <input type="hidden" name="cancel_return" value="http://{$domain}/{$languageURL}items/paypal/cancel/">
            <input type="hidden" name="image_url" value="">
            <input type="hidden" name="email" value="{$smarty.session.user.email}">
            <input type="hidden" name="first_name" value="{$smarty.session.user.firstname}">
            <input type="hidden" name="last_name" value="{$smarty.session.user.lastname}">
            <input type="hidden" name="custom" value="{$orderID}">
            <input type="hidden" name="custom2" value="{$smarty.post.licence}">
            <input type="hidden" name="amount" value="{$price}">
            <input type="hidden" name="cs" value="0">
            <input type="hidden" name="page_style" value="PayPal">
            <noscript>
                <button type="submit">Click here to pay</button>
            </noscript>
        </form>
       
        {literal}
        <script type="text/javascript">
        $(document).ready(function() {
            $("#form").submit();
        });
        </script>
        {/literal}
    {/if}
     
        <div class="title-line">
            <div class="wrap">
                <div class="clr"></div>
                <h1>{$item.name}</h1>
            </div><!--wrap -->           
        </div><!--title-line -->
    <div class="clr"></div>
        <div class="detiles-content">
        <div class="clr"></div>
       
        <div class="product-image-details">
                <a href="/{$languageURL}items/{$item.id}/screenshots/" class="details-image" target="_blank"><img alt="{$item.name|escape}" src="{$data_server}/uploads/items/{$item.id}/preview.jpg" /></a>   
                <div class="clr"></div>
               
               [U][B] <p class="left mt3"  >ID: {$item.id} | Purchases: {$item.sales} | Price: {$currency.symbol}{$item.price}</p>[/B][/U]
                  <div class="blue-btn-holder right">
                    <a href="/{$languageURL}items/screenshots/{$item.id}/" class="blue-btn screenshots" target="_blank">{$lang.screenshots}</a>
                </div>
               
               
              {if $item.demo_url}
                <div class="blue-btn-holder right mr10">
                <a href="/{$languageURL}items/preview/{$item.id}" class="blue-btn preview" target="_blank">{$lang.live_preview}</a>
                </div>
                {/if}
              <div class="clr"></div>
            </div><!--product-image-detiles -->       
          <div class="clr"></div>
          <div class="space20"></div> 
          {include file="$root_path/modules/items/views/_toolbar.html"}
          <div class="clr"></div>
         
        <div style="margin-top: 15px;margin-bottom: 15px; font-color: #fff; ">
          [U][B]{$item.description}[/B][/U]
            </div> 
           
           
            <div class="clr"></div>
            <h2>{$lang.by} <a href="/{$languageURL}users/portfolio/{$item.user.username}/">{$item.user.username}</a></h2>
            <div class="separator-line"></div>
           
            <div class="more-items">
           
                {if $otherItems}
              {foreach from=$otherItems item=i}
                    <a class="user tooltip-preview {if $smarty.foreach.i.last}last{/if}" href="/{$languageURL}items/{$i.id}/{$i.name|url}.html" title="{$i.name|escape}" rel="{$data_server}/uploads/items/{$i.id}/preview.jpg" alt="{$currency.symbol}{$i.price}"><img src="{$data_server}/uploads/items/{$i.id}/{$i.thumbnail}" width="80"  height="80" border="0" alt="{$i.name|escape}" title="{$i.name|escape}" /></a>
                {/foreach}
            {/if}   
            <div class="clr"></div>       
            </div>
           
       
           
           
       
           
           
           
           
        <div class="clr"></div>
            <small><a href="/{$languageURL}users/portfolio/{$item.user.username}">{$lang.more_items_by} {$item.user.username}</a></small>
        <div class="clr"></div>
        </div> <!-- end of item-left -->
     
            {include file="$root_path/modules/items/views/_rightside.html"}
     
       
        <div class="clr"></div>
    
    HTML:
     
    romioaa, Feb 6, 2013 IP
  2. GMF

    GMF Well-Known Member

    Messages:
    855
    Likes Received:
    113
    Best Answers:
    19
    Trophy Points:
    145
    #2
    there is no css attribute called font-color. It's only color

    Did you write that yourself, or was it generated?
     
    GMF, Feb 6, 2013 IP
    romioaa likes this.
  3. romioaa

    romioaa Notable Member

    Messages:
    1,368
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    200
    #3
    No this is a script I bought, and I have some knowledge of CSS.

    Thanks alot
     
    romioaa, Feb 6, 2013 IP
  4. romioaa

    romioaa Notable Member

    Messages:
    1,368
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    200
    #4
    I am getting crazy some pages do change and some no
     
    romioaa, Feb 6, 2013 IP
  5. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #5
    Oh good lord that's some horrifically bad code... I'm seeing clearing DIV like the worst of 2001, improper/invalid forms, presentational markup, the painfully bad and pointless smarty crap...

    ... and that's not even talking the flawed notion of sending a ton of data in hidden fields that by all appearances has zero business even being sent client-side in the first place if you care about security...

    I don't know what script that is, but if you paid money for it you were taken.
     
    deathshadow, Feb 7, 2013 IP
  6. romioaa

    romioaa Notable Member

    Messages:
    1,368
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    200
    #6
    Are you seriously talking man?
     
    romioaa, Feb 7, 2013 IP
  7. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #7
    DEADLY serious... I mean:

    <input type="hidden" name="email" value="{$smarty.session.user.email}">
    <input type="hidden" name="first_name" value="{$smarty.session.user.firstname}">
    <input type="hidden" name="last_name" value="{$smarty.session.user.lastname}">

    You don't know what's wrong with exposing that information in a order form, you probably shouldn't have an order form. ALL of those 'hidden' fields should be stored in a database server side referred to by a single index... Not sent back and forth on every request. I see this mistake a LOT lately, people putting things in hidden fields that have NO business being sent in a form.

    These:
    <div class="clr"></div>

    ...are pointless outdated code bloat, typically an indicator that whoever wrote the markup doesn't know enough HTML or CSS to be writing a blasted thing...

    this:
    <div style="margin-top: 15px;margin-bottom: 15px; font-color: #fff; ">

    Is inlined presentation that has no business in the markup...

    Then there's this gem:
    
              {foreach from=$otherItems item=i}
    
                    <a class="user tooltip-preview {if $smarty.foreach.i.last}last{/if}" href="/{$languageURL}items/{$i.id}/{$i.name|url}.html" title="{$i.name|escape}" rel="{$data_server}/uploads/items/{$i.id}/preview.jpg" alt="{$currency.symbol}{$i.price}"><img src="{$data_server}/uploads/items/{$i.id}/{$i.thumbnail}" width="80"  height="80" border="0" alt="{$i.name|escape}" title="{$i.name|escape}" /></a>
    
                {/foreach}
    
    Code (markup):
    If you're going to have a list of items it should be in a list or possibly even a table since there's tabular data in there being 'hidden' behind some wierd goofy image nonsense, made even worse by a lack of legitimate text content, redundant/pointless use of the TITLE attribute, ALT attribute on an element (the anchor) that doesn't even HAVE alt, invalid REL attribute (you don't put URL's in REL), the BORDER attribute which has no business in anything written after 1997... pointless classes across like elements, and all for what looks like some javascripted asshattery that's probably an inaccessible slow wreck.

    Shall I go on? I'm sorry to say, but it's BAD... I hope you didn't pay a lot for it.
     
    deathshadow, Feb 7, 2013 IP
  8. romioaa

    romioaa Notable Member

    Messages:
    1,368
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    200
    #8
    I paid $150 dollars for that script... :S
     
    romioaa, Feb 7, 2013 IP
  9. muffet

    muffet Active Member

    Messages:
    720
    Likes Received:
    7
    Best Answers:
    4
    Trophy Points:
    68
    #9
    Get your money back! :D
     
    muffet, Feb 8, 2013 IP