Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 7 of 7

Thread: border color

  1. #1
    Junior Member
    Join Date
    Aug 2011
    Posts
    1
    Member #
    28913
    Ok see here is my problem I am trying to put a blue border around a div with

    border-color: rgb(0, 0, 255);
    border:solid;
    and it looks fine in my editor which in Aptana
    However once I upload the file to the server the border is black, and it doesn't go all the way around one of the divs I set it to. I've tried the hexa version of the color #0000ff but it does the same thing.

    Anyone have any good ideas?

  2.  

  3. #2
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    You haven't specified a border-width. See if specifying that will fix it.
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."

  4. #3
    WDF Staff George Dolidze's Avatar
    Join Date
    Apr 2011
    Location
    Irvine, CA
    Posts
    2,487
    Member #
    27540
    Liked
    416 times
    or try: border: 5px solid #0000ff;
    My freelancer website: DolidzeDesign



    You only need a parachute if you plan on skydiving twice.

  5. #4
    Member rose_designer's Avatar
    Join Date
    Aug 2011
    Posts
    31
    Member #
    28949
    Liked
    2 times
    try this

    <div style="border:solid 1px #0000ff;"></div>

  6. #5
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    Inline styling should be a last resort.

    Can you post a link so we can see the problem as it is on the browser?
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  7. #6
    Senior Member Webzarus's Avatar
    Join Date
    May 2011
    Location
    South Carolina Coast
    Posts
    3,322
    Member #
    27709
    Liked
    770 times
    This has already been answered above. Ronald caught the issue, George put it in code format and alpha was absolutely correct in saying use inline styling as a last resort. That's because it becomes a maintenance nightmare. You always want as much ( if not all ) of your CSS in either an external style sheet, or at least in the <style> tags at the top of your page, so making changes later is easier. If I remember correctly, inline styles are not supported in a doc type declared as strict.

  8. #7
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    Quote Originally Posted by Webzarus, post: 216774
    This has already been answered above. Ronald caught the issue, George put it in code format and alpha was absolutely correct in saying use inline styling as a last resort. That's because it becomes a maintenance nightmare. You always want as much ( if not all ) of your CSS in either an external style sheet, or at least in the <style> tags at the top of your page, so making changes later is easier. If I remember correctly, inline styles are not supported in a doc type declared as strict.
    Thanks Webzarus - I have been away for what seems like a long time and was catching up - for once I didn't read the whole thread, just skimmed.
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 06:37 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com