New Posts
Live Radio
Welcome guest, is this your first visit?
  • Login:
TerminalPoker.com Affiliate Program
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Senior Member
    www.theaffiliatelife.com
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    England
    Posts
    1,496
    Blog Entries
    6
    Feedback Score
    31 (100%)

    Default A fairly basic CSS question

    Despite feeling comfortable with PHP and HTML, I've never really got to grips with CSS. Maybe that should be my New Years Resolution ...

    In the meantime though, I'm hoping someone can help me what what (I reckon!) should be a fairly straight forward query.

    I want to create a border for my content. Essentially a box with a grey border and two rounded corners at the top which will surround the main content on my page.

    Can anyone help me out with the necessary CSS code please?

    Thanks very much in advance!
    The Affiliate Life <<-- My Affiliate Blog. Feel free to drop by - would welcome your thoughts/comments
    Latest Post: How to set up a Branded YouTube channel & your thoughts on my videos

  2. #2
    Formerly TPB
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    Wales
    Posts
    666
    Feedback Score
    16 (100%)

    Default

    Rounded corners is actually quite tricky with CSS because you cant simply tell a box to have rounded corners with one line of code. You have to go the long way around by using rounded images for each corner iirc.

    I don't know how to make rounded corner boxes off the top of my head as I avoid them because they are trickier than they should be. Here's a link though: 25 Rounded Corners Techniques with CSS | CSS Juice

    Unless you really want rounded corners for whatever reason, I would be tempted to just keep it simple with normal corners.

  3. #3
    Senior Member
    www.theaffiliatelife.com
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    England
    Posts
    1,496
    Blog Entries
    6
    Feedback Score
    31 (100%)

    Default

    Always going for the complicated stuff

    Cheers for the reply Greg ... and for the link. I'll have a read through of it.

    One thought has struck me though. If I designed a graphic with round corners to use as a header and then stuck it at the top of a square cornered box (to use as a header), would that look really terrible?
    The Affiliate Life <<-- My Affiliate Blog. Feel free to drop by - would welcome your thoughts/comments
    Latest Post: How to set up a Branded YouTube channel & your thoughts on my videos

  4. #4
    Formerly TPB
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    Wales
    Posts
    666
    Feedback Score
    16 (100%)

    Default

    Yeah if you set it as a background image it should do what you want. The downside to that method though is the box won't be flexible in size and the image will be bigger than it needs to be, but it will certainly be more straightforward than using images for each corner.

  5. #5
    d[-_-]b
    My Status
     

    Add as a friend
    Join Date
    Apr 2009
    Location
    (◣_◢)
    Posts
    890
    Blog Entries
    2
    Feedback Score
    16 (100%)

    Default

    Its actually pretty handy to do when you get the positioning right like you would put this in your css and you can have different ones for different pages if you have different images like below

    h1.page1 {
    background:url(image 1 goes here) no-repeat;
    color: xxx;
    font-size: xxpx;
    font-weight: bold;
    padding: 30px 0px 24px 92px;
    }

    h1.page2 {
    background:url(image 2 goes here) no-repeat;
    color: xxx;
    font-size: xxpx;
    font-weight: bold;
    padding: 30px 0px 24px 92px;
    }


    The padding is what you use for positioning (top – bottom - left – right) mess around with it to get it to sit properly behind the headings

    Then call it on you pages

    <h1 class=" page1">xxxxx</h1>

    <h1 class=" page2">xxxxx</h1>

    You can use this for making rounded boxes, you can do borders and all I always use the bottom one.

    RoundedCornr: Rounded Corner and Gradient Generator

    And this is one of my favorite little tools, you have a colour picker, take pictures and check sizes with it.

    Mirek's Free Windows Software
    Diversify with Shareasale & if your a developer its the place to Sell your Stuff.
    Awesome Wordpress themes & html templates from $20 - $50 | Premium plugins & useful scripts form $5


 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Wanted: Basic photoshop/graphics design and html
    By Squizzel in forum Graphics
    Replies: 0
    Last Post: 02-19-2010, 09:17 AM
  2. Basic SEO Title Question
    By jdwanchalk in forum Poker SEO Forum
    Replies: 14
    Last Post: 11-16-2009, 07:38 PM
  3. Need a basic HTML template
    By KevinMcC in forum Websites
    Replies: 5
    Last Post: 05-12-2009, 01:28 PM
  4. Some basic questions about promoting slots
    By TheShortStack in forum Casino Affiliate Forum
    Replies: 8
    Last Post: 03-16-2009, 02:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Powered by vBulletin® Version 4.1.5
Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.
SEO by vBSEO 3.6.0
Affiliate Program Consultant