![]() |
|
|||||||
| Notices |
| CSS Forum Cascading Style Sheets (CSS) and XHTML Forum |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
for some reason when i put text in a <H> tag on my site, it pushes the text down?? i have no idea why its doing it. The code for my <h> tags is:
H1, H2, H3, H4 { font-family:Verdana, Arial, Helvetica, sans-serif; font-weight: bold; } H1 {font-size: 14px; color:#FF6600;} H2 {font-size: 12px; color:#FF6600;} H3 {font-size: 12px;} H4 {font-size: 12px;} If i put say <H1> </H1> around some text it pushes it down about 1/2 inch. anyone got any ideas why its doing it??
__________________
www.bretoncottage1654.co.uk |
|
|
|
||||
|
it's probably your browser.. do you have a link?
__________________
Tommy Logic ™ Web Design :: Valid XHTML & CSS :: SEO :: CMS :: eCommerce Web Design Tutorials :: Computer Tutorials |
|
||||
|
Quote:
__________________
Colour Printing and Integrated Cards || Graphic Design, Web Design UK || Logo Designer - Logo Design || Graphic Design Blog || Logo Design Logo Designer || Integrated Labels & Cards || Logo Design || Graphic Design Links || Web Design Rotherham UK || Logo Design UK || Web Design UK
|
|
||||
|
I forget that people forget to clear all their margins at the top of their CSS... I recommend starting your CSS file like so:
Code:
body, h1, h2, h3, h4, p, ul, li {
margin: 0px;
padding: 0px;
}
__________________
Tommy Logic ™ Web Design :: Valid XHTML & CSS :: SEO :: CMS :: eCommerce Web Design Tutorials :: Computer Tutorials |
|
|||
|
Good call, all of my style sheets currently start with:
body, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, img, strong, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, tr, th, td { margin:0; padding:0; border:none; }
__________________
benchmarc |
|
|||
|
Sweet that worked... cheers for being helpful all.
__________________
www.bretoncottage1654.co.uk |
|
||||
|
Quote:
Code:
*{
margin:0;
padding:0;
}
__________________
- The problem is how to remain an artist once you grow up. |
|
||||
|
yeah exactly... some what overkill
__________________
Tommy Logic ™ Web Design :: Valid XHTML & CSS :: SEO :: CMS :: eCommerce Web Design Tutorials :: Computer Tutorials |
![]() |
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| I need to get my small biz online | Jenny Goldberg | Graphic Design and Web Design Help | 3 | 22-04-2008 09:35 AM |
| Need logo for my small company | iman | Logo Design & Brand Identity Forum | 14 | 08-11-2007 07:09 PM |
| My small website :] | Communist-Cola | Advertising Forum | 21 | 18-06-2007 09:01 PM |
| Small dig at 2.0 | Toon | General Web Design Forum | 1 | 07-06-2007 10:01 AM |
| Small Oppertunity | Toon | General Web Design Forum | 4 | 01-03-2007 05:37 PM |
| All times are GMT. The time now is 10:23 PM. |