473,554 Members | 3,089 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HTML / CSS Forum

HTML and CSS (Cascading Style Sheets) web markup languages - Ask questions about html and css development, validation, errors, divs, blocks, tables, design, accessibility, w3c, firefox, ie, safari, tags, attributes, layouts, forms, buttons and more.
9
23,216
thread by: GloStix | last post Jan 5 '13 by: jsbryant
From some reason the entire webpage start about 5px from the top. I've margin:0 auto; the whole thing plus margin-top:0px; the whole thing too... #container { width: 700px; font-family: serif; font-size:14px; color: #222222; margin:0 auto; border-left:solid 1px #333333;
4
23,215
thread by: Harry | last post Jun 25 '06 by: Gus Richter
I just implemented an "overflow: auto" for a div in the main message window: http://www.auriance.com/docs/interaction/ This works as expected in Internet Explorer and Opera, but in Firefox it doesn't. There shouldn't be a scrollbar on the page, but instead, on the div that shows the messages. Any idea? Thanks,
3
23,194
thread by: news.individual.net | last post Jul 21 '05 by: news.individual.net
Hi! Can I capitalize the first letter of the first paragraph without using a special class for that <p> ? I tried it with this: body > p:first-child:first-letter { font-size: 270%;
14
23,175
thread by: gnawz | last post May 22 '09 by: gnawz
#pagecontent { max-width:490px; max-height: 240px; position: absolute; color: #fff; top: 115px; left: 378px; border: 3px solid white; background: #901315; padding: 0px;
1
23,169
thread by: Marek Mänd | last post Jul 21 '05 by: Jukka K. Korpela
<select multiple style="height:200px;"> <option>a <option>b </select> Why does Mozilla draw the vertical scrollbar to the SELECT html element? There is plenty of void room below two OPTIONs in the SELECT box, so there is no need for that. How do i get the overflow:auto like thing working in mozilla based
4
23,140
thread by: sue miller | last post Dec 29 '11 by: hellodipak
I want to code a sentence on my website where one word in the middle of the sentence is actually an h1 tag. Is there any code I can use that will be cross browswer to create this effect?
5
23,116
thread by: wildnis | last post Jul 21 '05 by: Alan J. Flavell
Hi, I have the following styles applied and would like to position the img centered inside my main content (now it is positioned left inside the main content- tried everything I know - any ideas?? Thanks #maincontent { background-color: #F5F5F5;
7
23,085
thread by: Mel | last post Jul 20 '05 by: James Moe
how can i have a rounded edge button in my forms using CSS ? thanks Mel
7
23,001
thread by: lawrence | last post Jul 20 '05 by: lawrence
In my style sheet I've set the links like this: a:link{ text-decoration:none; } I did that for the pseudo classes and I also did that for the image tag. Yet there are still link lines around the images. Why? It's on this page:
3
23,000
thread by: Xerxes | last post Jul 20 '05 by: Xerxes
Hi, I need help in setting up a page where the text wraps around an image. Right now, I am using table, with text in one <td> and the image in the adjacent <td>. The problem is when the text is longer than the height of the image, I get all this dead space below the image with the text just going vertically down in its own <td>. Can I use...
2
22,992
thread by: patrick h. | last post Jul 20 '05 by: patrick h.
Greetings, I am encountering some issues regarding using float while desiring to set the height to 100%. This is likely due to my own misunderstanding of the way things actually function -- any guidance would be appreciated. To summarize, I would like to have a variable-width, 100% height, left-floating column. However, it seems as...
2
22,929
thread by: Francesco Moi | last post Jul 20 '05 by: Darin McGrew
Hello. I designed a form to edit some DataBase's fields. But some of these fields contain '&lt;' and '&gt;' characters. And these characters are '<' and '>' in HTML. So if want to edit these fields, the form converts them into '<' and '>'. And I want to mantain '&lt;' and '&gt;' Mi piece of code:
6
22,784
thread by: Edward | last post Jan 28 '06 by: Jukka K. Korpela
I have been doing some research about embedding images in HTML using the data URL src method of the format: <img src="/-/data:image/gif;base64,<DATA>"> My question is, how does one generate this <DATA> string? I have found some on the web that I can load into my browser but if I save this image and then view in Notepad it looks much...
0
22,639
thread by: smr78 | last post Jul 23 '05 by: smr78
Hi, Up to now, I didn't find a solution to align text in the middle of a inline neither block box in the vertical direction. That's because the vertical-align property is not active for many boxes. And when it is, not all the browsers folow it. I think there is a general solution in surrounding the box with another box, using the top...
3
22,607
slotstar
thread by: slotstar | last post Jul 15 '23 by: aiden223
You can add a back button to your web page. When a visitor to your page clicks the button, they're taken to the last page they visited, as if they clicked the back button in their browser. You can accomplish this by editing the HTML of your page, and adding a little JavaScript. Note These buttons won't work if the user has no browsing...
1
22,594
HaLo2FrEeEk
thread by: HaLo2FrEeEk | last post Mar 30 '11 by: grisgruis
I'm designing a layout for a project and I'm a little rusty on HTML and CSS. I have a div that is centered in the page using margin: auto, it also has a margin-top of 15 and uses CSS3's box-shadow and a border-radius set to 10px. What I want is for the bottom of the div to be locked to the bottom of the screen, unless the content within it...
4
22,370
thread by: kaeli | last post Jul 20 '05 by: Markus Ernst
Hi all, I have form elements that I want to not be editable. They should, however, be passed on submission. AFAIK, then, they need to be readonly. (intranet app where elments are created server-side according to perms of user with a jsp taglib, so users get some elements they can edit and some they can't, but all will be passed to next...
7
22,348
thread by: Holli Graham | last post Jul 20 '05 by: Holli Graham
Hi all, I'm checking to see if anyone knows of a hack or trick or whatever to get IE6 to keep a minimum width of a tableless page. I have the entire page content wrapped in a container div called bodywrap that sets the min-width to 760px and I added the spacer.gif for IE5.x and NN4 in the body of the html and added the trick suggested...
5
22,324
thread by: jistanidiot | last post Jan 27 '07 by: Beauregard T. Shagnasty
We've got some plain text in a DB that we're pulling out and putting it on our website. The problem is it has some lists like this: 1. This text goes on and on forever and eventually it wraps to the next line. What I want to do is force that 2nd (and any other lines below it) to wrap like this:
7
22,299
thread by: ravey | last post Jul 24 '05 by: John Dunlop
I would like to use a Form "button" (or "input", either one) within an anchor, instead of using text or creating a graphic. This works fine in all browsers but IE, but IE, while showing the correct URL in the status line and the tooltip, DOESN'T initiate the link. The code is essentially: <a href="http://foo.com/whatever.htm"> <input...
3
22,283
thread by: =?iso-8859-1?q?Jesper_R=F8nn-Jensen?= | last post Oct 15 '07 by: Bergamot
I'm working with a requirement to make a selectbox the same height as normal text input elements. (at least for IE7) But in IE the selectbox reacts strangely to the CSS rules. Normally, there are so many things not possible with select boxes in IE. But the I discovered I could actually change the height by adjusting font-size, then...
13
22,234
thread by: chippy | last post Jan 5 '08 by: BADATTITUDE77
im currently doing my myspace ... ive seen bands put codes in scroll boxes ive tried this but it just showed the code how can i make it show the code not the image???
11
22,233
thread by: Curious Angel | last post Jul 20 '05 by: Curious Angel
Hi, I have a version of my resume that is (almost) web ready and I'm pleased with its appearance on the screen (well, sort of heh heh, it's my first HTML). I also created a tighter, scaled-down version from my original (Pagemaker 6.0) as an Adobe PDF, so employers can have something that is graphically identical to the original PM6 document....
6
22,223
thread by: Zhang Weiwu | last post Jul 20 '05 by: DU
Hello. I am working with a php software project, in it (www.egroupware.org) Chinese simplified locate is "zh" while Traditional Chinese "tw". I wish to send correct language attribute in http header, I found "zh" is not standard. I found this line in apache2's default httpd.conf # Simplified Chinese (zh-CN) AddLanguage zh-CN .zh-cn
12
22,199
thread by: mi0sis | last post Dec 1 '06 by: mi0sis
Right now I am currently using this: ------------------------------------------------------------ .div0 { background-image:url(http://www.rubnip.com/Pictures/topback.gif); background-position:center center; background-repeat:no-repeat; background-attachent:fixed; background-color:black; color:FFFFFF; border:0px solid; border-color:grey;

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.