External css file changes page look

Discussion in 'CSS' started by jeffhale, Jun 30, 2009.

  1. #1
    Can anyone please explain why copying and pasting my css from inline to a separate file makes changes to the formating? Most of the css styles seem to get picked up, but not a few related to the main container. I'm pulling my hair out on this.
    Any help is appreciated.
     
    jeffhale, Jun 30, 2009 IP
  2. belgirl

    belgirl Greenhorn

    Messages:
    64
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    20
    #2
    Can you post a link?
     
    belgirl, Jun 30, 2009 IP
  3. jeffhale

    jeffhale Active Member

    Messages:
    56
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    58
    #3
    got it. I guess I had to have the body style inline.
     
    jeffhale, Jul 1, 2009 IP
  4. jeffhale

    jeffhale Active Member

    Messages:
    56
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    58
    #4
    got it. I guess I had to have the body style inline.
     
    jeffhale, Jul 1, 2009 IP
  5. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #5
    There would be no real reason to have to have the body style inline, unless you were using javascript of some sort.

    It's possible your overriding your styles, or not reffering to the element correctly.
     
    wd_2k6, Jul 1, 2009 IP
  6. pipisdicelana

    pipisdicelana Peon

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    You're not being reasonable, it had nothing to do with body style
     
    pipisdicelana, Jul 1, 2009 IP
  7. justinlorder

    justinlorder Peon

    Messages:
    4,160
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    0
    #7
    It can't be like that .
    External css and internal css are the same .
    There must be some problem you didn't notice when copying the css which lead to the problems.
    A very common one is the relative path of background images (in css files) .
     
    justinlorder, Jul 3, 2009 IP
  8. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #8
    Uhm, no... That probably means there is something wrong with your CSS or what you are copying to the file. (Like the mistakes I see people do all the time of copying the STYLE tag over, or an HTML comment instead of CSS style ones)

    Though:
    Bingo, we can't tell you for certain what you are doing wrong without SEEING what you are doing. It's a bit like calling a mechanic on the phone and saying "My car is making a strange noise"... Can you elaborate?
     
    deathshadow, Jul 3, 2009 IP
  9. jeffhale

    jeffhale Active Member

    Messages:
    56
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    58
    #9
    I hear you that inline and external css should be the same. I'd be happy to share a link, but my page isn't hosted yet, so I can't do that, right? (Sorry if that's a dumb question). Regarding the mechanic question - perhaps Car Talk is a good analogy? :)
    I'm pretty sure the issue was the relative path of background images.
    Thank you for the help.
     
    jeffhale, Jul 6, 2009 IP