Can i do this is css ??

Discussion in 'CSS' started by msk19994, Dec 22, 2010.

  1. #1
    the thing is that i on my site My Site

    at the top there is top picks and new on dvd the thing is that the script i am using has different files for different pages so when i try to add a new link i have to edit all the files and that takes too long is there a way by which i can add these links in only 1 file ie the css file of the script /??
     
    msk19994, Dec 22, 2010 IP
  2. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #2
    Oh dude, your site has 497 coding errors...

    http://validator.w3.org/check?uri=http://www.watchmoviesandshows.com/

    CSS is for the layout, not for any HTML like <a> tags (links).

    If you know how to use php/templates you could include the "section" via php include.

    I do not know if you are using CMS/PHP/static HTML or whatever... give us some more info
     
    CSM, Dec 23, 2010 IP
  3. msk19994

    msk19994 Well-Known Member

    Messages:
    1,030
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    160
    #3
    mate the thing is that my site is based on html only the coding is in html the css is in a different folder if u use a
    css validator u can see mycss there

    And about the html validation u sent me the thing is that only tags and advertisers code and sm other stuff is incorrect as it says but the last time i tried to fix what it said my site page was upside down or i must say crapped up

    The thing is that in my site there are different pages for different html files so in the admin panel there is a feature option but as u can see on my main page small avatar may be written on top as no one can actually see it that is why i have paced a html code on every page ie the links of the movie when a new movie comes i have to edit all the pages a,nd add its link iwas wondering if there was a way by which i can only edit css and add links there not on every page of the site thankyou
     
    msk19994, Dec 23, 2010 IP
  4. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #4
    As I said... you can not add LINKS to CSS...

    CSS is for the site's layout, not for HTML tags like <a> (this is for links).

    By the way:

    it is easy to fix most of your site errors (regarding the http links and meta tags).

    You are using DOCTYPE XHTML 1.0 Transitional.

    All your meta tags should end with /> and not with >

    XHTML 1.0 Transitional every tag must be lowercase.

    In many <img> tags the alt attribute is missing.

    Links like

    
    <img src="http://fidelity.rotator.hadj7.adjuggler.net/servlet/ajrotator/68630/0/vc?z=fidelity&ch=56296&dim=18795&kw=&click=&abr=$imginiframe" width="728" height="90" border="0">
    
    Code (markup):
    should be

    
    <img src="http://fidelity.rotator.hadj7.adjuggler.net/servlet/ajrotator/68630/0/vc?z=fidelity[COLOR="red"]&amp;[/COLOR]ch=56296[COLOR="red"]&amp;[/COLOR]dim=18795[COLOR="red"]&amp;[/COLOR]kw=[COLOR="red"]&amp;[/COLOR]click=[COLOR="red"]&amp;[/COLOR]abr=$imginiframe" width="728" height="90" border="0" [COLOR="red"]/[/COLOR]>
    Code (markup):
    ...

    Line 151, Column 14: document type does not allow element "tbody" here; assuming missing "table" start-tag

    Every error is reported in W3C validator
     
    CSM, Dec 23, 2010 IP
  5. msk19994

    msk19994 Well-Known Member

    Messages:
    1,030
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    160
    #5
    Sir
    The above coding that pasted is not my sites code by the code of advertiser so i cant change that code

    and is there any other way to do what i want to do
     
    msk19994, Dec 23, 2010 IP
  6. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #6
    Yes I know it is not your code, anyway you can change it so it does not create any error... only change & in the URL to &amp; ...

    Basically yes, it is possible (with different solutions).

    For example:

    - php include
    - AJAX

    I do not recommend IFRAME.

    Personally I would do it with jQuery AJAX, but your jQuery is 1.2.6 and I would update to latest.

    I am using the "technique" I am talking about in several projects.
     
    CSM, Dec 23, 2010 IP
  7. msk19994

    msk19994 Well-Known Member

    Messages:
    1,030
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    160
    #7
    as you are saying to grab the latest version of jquery the thing is that i have jquery pack when i place the unpacked 1 i get bugs on my site like rating doesnt work and comments icon shows up without logging in
     
    msk19994, Dec 23, 2010 IP
  8. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #8
    There is an error with the Google Analytics code...

    
    
    <script type="text/javascript">
    try  catch(err) </script>
    
    Code (markup):
    Firebug reports:

    
    missing { before try block
    [Bei diesem Fehler anhalten] try catch(err) 
    
    Code (markup):
    I just made a test and loaded latest jQuery from their page and included it... no jQuery error
     
    CSM, Dec 23, 2010 IP
  9. msk19994

    msk19994 Well-Known Member

    Messages:
    1,030
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    160
    #9
    the new 1 is working but the last 1 was not so thankyou and how to include ajax ?
     
    msk19994, Dec 24, 2010 IP
  10. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #10
    There are different possiblities with AJAX.

    You can do a file called xyz.html and load it with jQuery .load into the container of the index.html for example.

    That's how I did it on some projects and it works well.
     
    CSM, Dec 25, 2010 IP
  11. msk19994

    msk19994 Well-Known Member

    Messages:
    1,030
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    160
    #11
    ok mate the thing is that u would already know that i am a noob to the ajax and juery stuff i have no idea how to do what u just said an example would be nice
     
    msk19994, Dec 25, 2010 IP
  12. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55