I'm a person that learns best from example. Currently, I'm diving into the field of Web Development after fifteen years of developing desktop apps. I'm still getting used to all the web technologies used for developing modern web sites and everywhere I look, I see cool little UI elements and have no idea how they're implemented. So I ...
Hi,
I am trying to break away from using tables in my formatting, and am trying out using userlist html tags <ul>
Say I have a panel with 10 controls, and I want a 3 columns display, therefore 3 controls in each row, and a total of 4 rows for 10 controls.
Should I use 4 different <ul> or should I just stack them inside one <ul>
Pleas...
Hi, Is anyone know how to convert the height of TR element which is in AUTO to pixel or percentage?
...
hey,
I've spent too much time trying to get this to work on IE 7. It's working on ff and the only errors coming up on validator are missing alt tags for images (9 errors).
The entire site works except for this one part, and so I'm wondering if there's a weird float bug that I'm unaware of.
I have a div with an image inside of it. Under...
I have a menu div to put the menu list inside
<!--menu-->
<a href="#"><div id="menu-tab">Menu</div></a>
<div id="menu">
<ul>
<li><a href="#">a</a></li>
<li><a href="#">b</a></li>
<li><a href="#">c</li>
</ul>
</div>
for the css
#menu {
width: 220px;
border: 2px solid #004990;
float: right;
margin-right: 15px;
margin-t...
I have been debating using css with div's and laying out elements, and really am looking to see if the practice i've been using would be considered the best practice, or if there is something different that i'm over looking that would be better.
Lets say we were placing two images on the same line, on on the left one on the right then a...
I would like to use conditions in my css.
The idea is, I have a variable that I replace when the site is run and generate the right stylesheet.
I want that according to this variable the stylesheet changes!
It looks like:
[if {var} eq 2 ]
background-position : 150px 8px;
[else]
background-position : 4px 8px; ...
Hi, I wrote a code to show a div element(shareform) when a link is clicked and to hide it when the link is clicked again. I have many Forms under which this link 'Share' will be displayed. If i have only one Form, this code works fine. That is, initially the 'shareform' element is hidden and when I click the link, it is shown and when I ...
I have 2 divs, one positioned absolutely right: 0 and the other relatively positioned center screen. When the window's width is too small, they overlap. How can I invoke a javascript function when this happens?
Thanks.
Mike
Edited to make clearer.
...
I am having some serious issues trying to tweak my layout in a table. In Firefox I get weird top/bottom padding inconsistencies with all text. In both Firefox and IE8 I can't seem to make my icons appear vertically centered in their cells either.
See as follows:
Here is my table css:
table.maxwidth {
width: 100%;
}
table.standard ...
I'm writing a webmail product and some emails have body css that changes the background ... so when I Html.Decode() that emailbody, it's altering the CSS of the entire page.
Is there a good way to contain that problem?
...
I've got a small program that displays third-party generated HTML pages. It's really just a wrapper around a locked-down TWebBrowser component (which is just an IE wrapper, I believe).
The client wants to print these pages now too - but the TWebBrowser print method doesn't render all of the CSS. For instance, where the client uses block...
IE 7 does not display the initially hidden table cells (class="c") when class of the containing div is changed to "b", where "display:none" rule is removed. However, it should as it does for the row (class="r"). Other browsers behave properly. Seems like an IE bug. Did anyone came across this issue before? Any solutions?
Thanks a lot.
...
Hi!
I hope to explain my problem simple in order to get good feedback :)
Imagine this scenario: One DIV wrapper within two floating DIVs, next to each other, with fixed width. All of them with overflow hidden.
But when decreasing the width of the wrapper (or increasing the children's) the last DIV collapsed instead of hide. Please, ch...
Hi Guys!
I have a little problem with my site, I have a bar and on it a box that float above the bar, everything works fine in IE, Firefox, Opera, but in Chrome and Safari the box that must be above the bar float by the bar side no above it.
#barraDerecha
{
width:240px;
background-color:#e5e5e5;
border-left:solid 2px ...
If I have two divs, one shown, the other hidden, I want the images in the visible div to load first and only then for the other hidden images to load.
Is there a way to do this?
<div class="shown">
<img src="a.jpg" class="loadfirst">
<img src="b.jpg" class="loadfirst">
<img src="c.jpg" class="loadfirst">
<img src="d.jpg" class="loadfi...
I have the following HTML:
<DIV class="foo bar"></DIV>
I'm trying to create a CSS class declaration that matches said element. Looking through the specs on section 8.2.3, I imagine this should've work:
DIV.foo.bar { border-color: black; }
But I've tested on IE and Safari, both doesn't affect the element. Any tricks how to make this...
I am a web developer.
We are getting our design done by a designer in US.
But finally I have to understand his code, or at least the basics.
So, we fix issues resulting from his code.
Which is a is good CSS/HTML book for beginners?
UPDATE:
Thanks guys.
I just bought Eric Meyer's CSS definitive guide.
So, accepting pdemarest's reply a...
I have used a template for my website. that template contains 2 stylesheets. one is for text and the other is for layout. now i have a master page and a contactUs form uses that masterpage. the master page uses both the above mentioned stylesheets. I have used an accordion in a control. The problem is that the accordion is perfect in the...
i need selector for selecting A element that directly followed by B element
<style>
/* B that directly preceded by A*/
A+B {
}
/* what the selector for selecting A that directly followed by B ????? */
</style>
<a>some text</a>
<b>some text</b>
...