TheJCD
Members
-
Joined
-
Last visited
Reputation Activity
-
TheJCD reacted to BlueDreamer in How do you recreate this in HTML & CSS?Wrap the input in a containing element?
<div class="phone"> <input type="tel" id="tel" name="telephone" class="phone-input"> </div> Then some CSS such as...
/* container border, background etc */ .phone { padding: 1em; border: 1px solid #333; border-radius: 12px; } /* input field */ .phone-input { text-indent: 30px; background: transparent url(phone-icon.png) no-repeat left; // add phone icon border: 0; // get rid of default input border } -
TheJCD reacted to WilliamsGraphics in How to make HTML navigation float to the right of company logo?Float:right would be the best property you could apply, assuming you used it right. You could also relatively/absolutely position your div with the nav in it, or given that it's at the top, fixed may also be an option.
I would recommend (off the top of my head with no experimentation, something like this:
<header> <div class="container"> <div id="logo">YOUR LOGO</div> <div class="floating-right"> <nav> Your navigation </nav> </div> <div class="clearfix"></div> </div> </header> Where clearfix is the property to clear all floats from potentially screwing up things down the line.
Floating-right is just whatever you want with float:right; applied to it.
ID Logo isn't anything in particular.
Hope this helps you out a little bit. Don't forget to use containers so you're not going full width.. unless that's what you want.
OH. And to style the way it looks. You'll probably want to use a <ul> and <li> elements for the actual nav part of it all. Style your <ul> with no padding or margins (if thats the look you want to go for, but make sure to put "display:table" in the <ul>s properties. Then, for each <li> element, have "Display:table-cell; width:1%;" and that should automatically size every <li> to fit your nav.
I'm sure i've missed out some properties but that'll set you on your way.
-
TheJCD reacted to teodora in PSD to HTML - Don't want it in tables. Help ASAPYes, basically you need to re-create the design with HTML and CSS. Any generated code wouldn't be semantic, it needs a human touch
-
You will need to use the slice tool in photoshop to extract images
But, before you do that, stop and think
How much of certain parts will you need?
You don't need fonts, colours and shadows because those can be done in CSS, you may not need the whole of some images if it's a repeating pattern for example.
The sequence is to slice it and then using divs with CSS create your website, stay well away from tables unless it's for tabular data, like scores for example.