Jump to content

kelly2marie

Members
  • Content Count

    25
  • Joined

  • Last visited

Community Reputation

1 Neutral

About kelly2marie

  • Rank
    Newbie

Profile Information

  • Gender
    Male
  1. I am assuming your are trying to print a web page?? I'm hoping it's your own web page?? If so, you need to create a print style sheet that defines the background colors you want to show up when printing.
  2. In regards to <center><div id="container"> If you are trying to center the div itself, specify a width AND auto margins for the left and right. (the width can be pixels, ems, or percentage) #container {width:90%; margin:0 auto;} If you need to center content within a particular div, then you would use text-align:center as follows: #container {text-align:center;} Or............. let's say you would like to center the contents of a paragraph using an inline style.... HTML: <p style="text-align:center;">Content here. </p> Or, create a cla
  3. You can use the !important declaration for the color property. color:white!important; That will force the text to be white regardless of any inheritance or any other reason. But, use this as a last ditch effort. In your situation, it may be the solution.
  4. Take a look at this: http://www.456bereastreet.com/lab/equal_height/ shows you how to create equal height boxes using the display property: such as display:table, etc. This means you will not need to use ap divs! You won't have to screw around with margins etc. And you will have equal height boxes.
  5. absolute positioning can be used any time you need a 'Layer' (sometimes called an AP div). Basically, a Layer is a div tag given 'absolute' position: <div id="layer1"></div> #layer1 { position:absolute; width:200px; height:200px; } Any time you use absolute positioning, you must set a height and width, though there are some exceptions to this. You can also use the following CSS Properties to help position your layer: top right bottom left z-index The problem with Layers is that they are not nearly as flexible as we need them to be. This is mainl
  6. <div class="thumbnail"></div> .thumbnail { width: 227px; height: 237px; } Now, if you are experiencing margin collapse or really it's an escaping margin, then you have two options. 1) Add a border around the div. 2) Add a pixel of padding on top and on the bottom. Also, be sure to zero out margins and padding, typically done with a css reset, or on the body style. So....... body { margin:0; padding:0; } .thumbnail { width: 227px; height:237px; border: 1px solid #33333; }
  7. Actually, to make 2 columns side by side, give the first div (column) a width and float to the left. The second div (column) just needs a left margin that is equal to or greater than the width of the first column. That would make this right column expand to take up the room leftover. <body> <div id="wrapper"> <div id='leftcol"></div> <div id="rightcol"></div> </div> </body> #leftcol { width: 240px; float: left; } #rightcol { margin-left: 240px; } Keep in mind, the source order of the divs is important when you fl
  8. dsonesuk is right. in addtion, if you set a width at 100% and add a border, this too will trigger a horizontal scroll bar. However, to avoid these issues with padding, margins, and borders and the default css box model, we can add a css3 property called "box-sizing". Basically, we use that to change the way the box model is applied, in other words, change the way padding, margins, and borders behave by default which is additive. meaning, if you add any of these properties to block box that has a width specified, it causes the entire width of the element to increase. use box-sizing with a
  9. To make the divs fluid, you can set their widths to percentages. In addition, it sounds like you are looking for info about Responsive Web Design. Here you begin with a fluid layout, then use Media Queries to create a different set or sets of CSS Styles for different Device sizes. (Take a look at kellys-tutorials.com/demo. This is a current site I am building to be Responsive. Resize the browser width and watch as the layout changes. Just keep in mind, I am in the early stages of this site, and it needs work. But you should get the idea. Go ahead and look in the code and css. take wh
  10. First, it's great that you noticed this! Here's what I would do, or one could do............. <section id="top"> -- omit div -- <ul class="list fl"> <li><a href="#">Home</a></li> <li><a href="#">About</a></li> <li><a href="#">Services</a></li> <li><a href="#">Blog</a></li> </ul> <ul class="fr"> <li><a href="#">Grab our Feeds</a> et
  11. You know, I started writing this thinking you needed help!! I got to the part where you said "it was still kind of fuzzy to you". I apologize!! Yet, I decided to continue on and post this. It took me a while to write! so I am posting it!! lol I too hope this helps Someone!! Anyone!! First, let me say this: KEEP IT SIMPLE!!!! CSS Syntax selector { css-property: value; css-property: value;} You can group Selectors using a combinator, such as a comma which means "AND". An empty space means something all together different!! It implies descendancy. Check out this V
  12. Here's what you need to do in order to do better troubleshooting.... Use Mozilla Firefox browser. Then get an addon called Firebug. Once you have Firebug, then view your page in Firefox, right click where ever you have a problem and choose Inspect with Firebug. Firebug will open in the bottom of the window. Now click on the particular HTML in question and firebug will highlight that area on the page plus show you the existing CSS being applied to that element. You can turn off any CSS Style to see what happens. This process will help you figure out what to change. You still have over
  13. I agree that there is not enough space available. However, let's back up a bit... you have overflow set to hidden. I would remove this, and instead, clear the float to keep the content beneath from floating upwards. Hiding overflow is part of the reason you do not have enough space. Another reason: remove the -13px margin from the <ul> element. You will have to investigate further by experimenting in order to find other reasons for lack of space. Though I think you will find removing hidden for overflow is going to help you out quite a bit!!
  14. I would remove the symbol from the selector and class attribute so that your selector is just .introheader. Also, remove <sup></sup> that you have wrapped around the symbol in the html. Assuming you are using the Text in a Heading tag, here's the HTML: <h1>My Product<span class="introheader">®</span></h1> The CSS: h1 { font-family: Verdana, Helvetica, sans-serif; font-size: 28px; etc... } .introheader { font-size: 13px; vertical-align: 12px;} I created a fiddle at http://jsfiddle.net/kelly2marie/47XtJ/ The ver
  15. Do you have any code you can show us??? By the way, I did a search and found something called "Responsivizer", which is a Joomla extension. Says no need to to do a complete rebuild and works on most joomla versions. consider looking at this. it's also suppose to work on ipads etc.
×
×
  • Create New...