546 Posted Topics

Member Avatar for ryy705

Do you want the two bars at the top and bottom. The second bar was not correctly rendered, and it appeared at the bottom of the first bar. Put the statement 'clear: both' to the 'bar. Here it is [code].bar { background-color:#840018; clear: both; height:10px; width:100%; } [/code] Good luck..

Member Avatar for ryy705
0
83
Member Avatar for nadnakinam
Member Avatar for MBD

Which space did you mean? Maybe space between the browser and your pgae. Give 'margin' and 'padding' to '0' in body. [code] body { margin: 0; padding: 0 } [/code] That is what I understand your question.

Member Avatar for webexpertzhere
0
142
Member Avatar for landroverthing

You were wrong forum. Maybe PHP or any programming forum that you should go.

Member Avatar for drjohn
0
79
Member Avatar for tustind

There is no container for the text 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse velit arcu, interdum in condimentum sit amet, vehicula non orci'. HTML is mark-up language, means that it can describes with the tag(element) which part of the document. Example, in the '<h1></h1>' tag, HTML document …

Member Avatar for ko ko
0
130
Member Avatar for smbaker

'float' needs exact width. The second 'div' has no width. It means that the width is auto. If your resolution is '1024', so the browser width might be '1000px'. The first 'div' is '160px', so the space for the next float element would have '860px'. The content is more than …

Member Avatar for ko ko
0
96
Member Avatar for san_fran_crisko

If you want to appear 'header' and 'topmenu' next to each, you can use 'float' to each. 'display:inline' was not good to use.

Member Avatar for ko ko
0
135
Member Avatar for Borderline

It may be overwrite by another css statement. Test with this: [code] #pagination a{ background-color: red ! important; color: white ! important; border: 1px ! important; border-color: black ! important; padding: 2px ! important;} [/code] Make sure your css path is right.

Member Avatar for ko ko
0
90
Member Avatar for spookies

Did you validate your HTML? DTD is important for HTML while using with css. You used many absolute position properties. That cause many issues for the browsers. If you want to make a column, you can use 'float', that would help you more than absolute position.

Member Avatar for spookies
0
116
Member Avatar for ErlendHL

Use 'overflow:hidden' property to the div which hold the navigation menus. I check your HTML and the div is 'ExternalMenuBarEHL1'. So, add this to the CSS property of 'ExternalMenuBarEHL1'. [code] overflow: hidden [/code] It is not what you want, post again clearly. Good luck.

Member Avatar for ko ko
0
96
Member Avatar for beforetheyknew
Member Avatar for beforetheyknew
0
83
Member Avatar for Cragdo

Developers used "h1" tag for main logo and replace text with image, instead of "img" tag. That helps our site ranks increase and search engine friendly. Try this one: HTML: <h1 id="logo"><a href="#">Your site name</a></h1> CSS: h1#logo { background: url('../your_logo.jpg') no-repeat top left; /* this image replace the heading text …

Member Avatar for Cragdo
0
146
Member Avatar for baby jai
Member Avatar for Vigasdeep

Maybe it could be wrong, but test it. Put [position:relative] to your first(main) container DIV.

Member Avatar for ko ko
-1
120
Member Avatar for zyzopath

Float your image, but floating makes overlapping problem. Floating the image would flow out of it's parent and it parent div['dragon'] can't wrap the image correctly. So you need to fix these browser bug. Try this: [code] .dragon img { float: left } .dragon { overflow: hidden } [/code] Use …

Member Avatar for ko ko
0
2K
Member Avatar for SADIYA4

Use auto margin to align center for block-level elements. [code] table { margin: 0 auto; width: 90% } [/code] Auto margin can only work when the width was set. And you must validate your HTML document. You're designing with table, so you should validate with HTML 4.01. Here is transitional …

Member Avatar for ko ko
0
86
Member Avatar for OmniX
Member Avatar for OmniX
-1
159
Member Avatar for ggeoff

The absolute position element was not DIV, it was span tag inside 'pagemenu' DIV. [code] [COLOR="Red"]<span style="position:absolute; top: 30px; left:570px; background-color: fuchsia;"> <?php include("mainmenu.txt");?></span>[/COLOR] [/code] So, it can be related to it's parent DIV 'pagemenu'. If DIV('pagemenu') has the property,(position: relative), the span stay 30px far from the top of …

Member Avatar for ggeoff
0
157
Member Avatar for megashape

Are you sure that is the 1px margin of LI elements? It maybe the padding, or it's parent margin or padding. So you need to try with all margin and padding with 0, include it's parent UL. Example: [code] ul { margin: 0; padding: 0 } ul li { margin: …

Member Avatar for seo1394
0
139
Member Avatar for rouse

The container is absolute position and the margin auto ignore in IE. Remove the "position: absolute" from the container. The style tag should be write after the title tag and meta tags.

Member Avatar for tranchibinh
0
258
Member Avatar for annaawills
Member Avatar for rouse

Go there, this will explain complete CSS properties. [URL="http://www.eskimo.com/~bloo/indexdot/css/propindex/all.htm"]http://www.eskimo.com/~bloo/indexdot/css/propindex/all.htm[/URL]

Member Avatar for jegan15
0
81
Member Avatar for CFulcrum
Member Avatar for amitnarayan

Try this: [code] /* Is it anchor link */ a:hover { cursor: pointer } /* else div or span */ div:hover { cursor: pointer } [/code]

Member Avatar for MidiMagic
0
82
Member Avatar for juliagarrett

Remove absolute property to head, and give it normal flow. If it absolute position, it was out of normal flow and it left no space in it's parent. So, the element after the head(in your code, a text with div) was move to top it was overlap by the head, …

Member Avatar for MidiMagic
0
147
Member Avatar for padrict

Please post your code where the problem found. We have not enough time to check all of your codes. Thanks

Member Avatar for ljianyih
0
137
Member Avatar for ryy705

Put this in your css file or embed in your HTML document. [code] ol { list-style:none; margin: 0; padding: 0; overflow: hidden } ol li { display: block; float: left; height: -px /* how much height your biggest image in the list container, set the same height with the biggest …

Member Avatar for ko ko
0
129
Member Avatar for oneat

Use inline-block or float. Inline can't help you. Here is some code. [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Tow Divs Next Each Other</title> <style type="text/css"> div { background: #EEE; border: 1px solid gray; display: inline-block; height: 200px; width: 300px; max-width: 300px ! important; white-space: …

Member Avatar for ko ko
0
75
Member Avatar for prachipote

Put this in your head section of HTML document. [code] <!--[if lte IE 6]> img#yourimage { background: none; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='your_image.png',sizingMethod='crop'); } <![endif]--> [/code] But, it was not a complete solution. It may cause some hyperlinks dead when you use this image as background under any layers where hyperlinks is on it.

Member Avatar for ko ko
0
75
Member Avatar for Whilliam

I'm not sure, but try with this: [code] <img src="your_image.png" style="background:transparent" /> [/code] How did you save the image in photoshop? You should use save for web in file menu. I'm not photoshop master, so I can't help you much more. Good luck friend.

Member Avatar for ko ko
0
61
Member Avatar for niche1

Using margin 'auto' property can stay element in center. Don't use 'text-align' property to center the element. 'text-align' is only for text, not the element. You may also use like [code] CSS: p { text-align: center } HTML: <p>This text will go to center</p> [/code] Or use table cell align …

Member Avatar for djzia
0
257
Member Avatar for hno

The anchor element is an inline element. Inline element can't contain block level element. You put h1 tag in anchor tag. It makes the browser confuse. You should write like that: [code] <h1>Example<a href="#"><img src="image.gif" /></a></h1> <h1><a href="#"><img src="image.gif" /></a>Example</h1> <h1><a href="#"><img src="image.gif" /></a><br />Example</h1> [/code] The block element can …

Member Avatar for ko ko
0
79
Member Avatar for designer09

Try this: [code] a { width: 245px; /* at least your image size when hover */ height: 245px; /* at least your image size when hover */ float: left; display: block } a:hover img { width: 240px; /* be careful that width must not larger than it's container width 245px …

Member Avatar for almostbob
0
83
Member Avatar for n0m4d

What version of DOCTYPE do you use? Did you put the DOCTYPE in your HTML? Use div instead of table. It will make you comfortable and solve your problem. Here is example. [code] HTML: <div id="first-row"> This is the first.<a href="javascript:show()">Show content</a> </div> <div id="second"> This content will show when …

Member Avatar for ko ko
-1
65
Member Avatar for checker

Give the z-index to negative value. [code] z-index: -10000 [/code] Hope this help.. Why not use body or parent element background? The background you used is not a background. It's html element and not the same as background.

Member Avatar for MidiMagic
0
127
Member Avatar for jcanaway

The error is there is no variable named content like $content. Set the $content variable. Here it is: [code] $i = 0; $content; foreach ($value as $row) { $content .= "<option value=\"" . $i . "\" " . $selected . ">" .$row . "</option>\n"; $i++; } [/code] But there is …

Member Avatar for ko ko
0
225
Member Avatar for Lolalola

Your theory is wrong. Left and right were 50% of width, so the total width of these two elements is the full size of the window, and there is no space for center element. The point is you need the center element has the fixed width and the left and …

Member Avatar for ko ko
0
76
Member Avatar for ko ko

My EOT font doesn't work in PHP. It only work in HTML. Can anyone help me? Thanks.

Member Avatar for ko ko
0
210
Member Avatar for n0m4d

Try this: [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>One DIV next to two DIVs</title> <style type="text/css"> body { margin: 0; padding: 0; font: normal 11pt/1.8em Arial, Sans-serif; color: #1d1d1d } #wrapper { overflow: hidden; /* stay center when the screen increase or decrease */ …

Member Avatar for ko ko
0
99
Member Avatar for charles07
Member Avatar for landroverthing

Correct the red color code. [code] #body { height:[COLOR="Red"]400[/COLOR];/* you need unit measure, only numeric value make browser confuse, add px */ width: 950px; background-color:#FFFFFF; } [/code] When I corrected this, the gap between and body and footer removed. But, there is a gap between campaign div and body div. …

Member Avatar for charles07
0
108
Member Avatar for cathimac

Validate your HTML. Here is XHTML 1.0 strict mode. [code] <!DOCTYPE html PUBLIC "-//W3C//DTD xhtml 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> [/code] Put this top of your html document. I hope this will solve.

Member Avatar for ko ko
0
145
Member Avatar for veledrom

The first is local, which is on your PC, and the second is the another site or absolute address of your site. I don't think the speed depend on the file location which are from the same location. 'http://www.mysite.com/images/image.jpg' or 'images/image.jpg ', I think they are the same, because of …

Member Avatar for almostbob
0
97
Member Avatar for ablitz

I don't know what do you want to center, text or element. If you want to center the text, try this: [code] # ul li a { display: block; text-decoration: none; color: #ffffff; border-top: 1px solid #ffffff; padding: 5px 15px 5px 15px; background: #2C5463; margin-left: 1px; white-space: nowrap;/* white-space ignore …

Member Avatar for ablitz
0
143
Member Avatar for kou yuuzhen

You can use span tag to hold text and vertically align to it. Here is example: [code] <span style="vertical-align:middle"> [/code] You can also use inline, embedded, or external style to it. Good luck.

Member Avatar for ko ko
0
59
Member Avatar for PDB1982
Member Avatar for n0m4d

Add this to your container [code] #container { padding: 20px 0 0 [COLOR="red"]0px[/COLOR]; /*You should give '[COLOR="red"]padding-top:20px[/COLOR]' instead of this and px doesn't need after 0 value' */ width: 100%; background-color: #CC3300; [COLOR="red"]overflow: hidden[/COLOR] } [/code] Add red color text, and try.. I hope this will help you.

Member Avatar for n0m4d
0
90
Member Avatar for alipica

Try this: [code] #upperBarWrap { margin:0; position:fixed; For /* IE */ left: 0; width:100%; } [/code] Set 'left=0' property to say IE where the fixed position start.

Member Avatar for MidiMagic
0
191
Member Avatar for rajeesh_rsn

Is your html has doc type? And what version of IE do you use? I check your codes with IE 7 and the result is same as FF. If you didn't add doc type, you need to put it first. Here: [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1.dtd"> …

Member Avatar for aDevS
0
459
Member Avatar for Gearspro

How much resolution do you use for banner? It is too wide. You should base on 1024. Group with same container for your banner, body, footer, etc. I am not sure it will help, but try this one. [code] <table width="100%"> <tr> <td width="100%" valign="top"><!-- Banner ----> <table width="100%"> <tr><td></td></tr> …

Member Avatar for ko ko
0
134

The End.