반응형
반응형

iPad CSS Layout with landscape / portrait orientation modes

http://matthewjamestaylor.com/blog/ipa ··· it-modes
Free iPad CSS layout with landscape/portrait orientation modes

The iPad has finally launched in Australia today, hooray! I will probably get one soon so I can continue to optimise my CSS layouts for as many devices as possible. But in the mean-time I will continue using the iPad emulator that comes with the iPhone SDK.

To celebrate the launch of the iPad I have built a special iPad optimised website layout that uses pure CSS to change layouts in the portrait and landscape orientation modes. The layout can be downloaded for free at the bottom of this article or from my iPad demo page. Here is a basic diagram of how the two orientations look:

iPad CSS layout portrait / landscape designs

In Landscape mode the layout is in two columns. The main content is in a wide left column and three side sections are stacked vertically in a narrow right column. When you rotate the iPad to the portrait orientation the layout changes to a single column design. In portrait mode the main content fills the full width of the screen and the three side content areas are positioned horizontally as three columns under the main content.

In both orientations there is a header at the top and a footer at the bottom. These both change in width from 1024 pixels wide in landscape, and 768 pixels wide in portrait. See my demo page for a more detailed diagram with pixel dimensions. Below are screenshots of my demo layout in the iPad emulator:

iPad CSS layout in the iPad emulator

How does it work?

The first thing I do is lock the layout's resolution to a 1:1 ratio so that each pixel exactly lines up with the pixels in the iPad's screen. I do this with the following META tag:

<meta name="viewport" content="width=768px, minimum-scale=1.0, maximum-scale=1.0" />

Locking the layout to a 1:1 ratio will prevent the zooming-in and out that normally occurs when the iPad is rotated (normally, landscape mode is more zoomed-in because the width of the webpage is displayed across 1024 pixels, as opposed to portrait mode when there are only 768 pixels available).

Next I combine this with some CSS rules that change the layout in portrait and landscape modes. I do this by writing all my landscape styles normally then overwriting some of them with the @media rule at the bottom of the CSS file when the device is in portrait mode. Here is a cut-down version of the CSS:

/*normal styles here */
#wrap {
width:1024px;
}
@media only screen and (orientation:portrait){
/* portrait styles here */
#wrap {
width:768px;
}
}

The method above works beautifully for changing the layout for the two orientations without JavaScript. Check out my iPad layout demo or download the demo files and try it for yourself.


Demo Download (ipad-css-layout.zip - 41kb)


I hope you enjoyed this post. If you are reading this on your brand new iPad then... lucky you! :)

 

반응형

'프로그래밍 > Architect' 카테고리의 다른 글

[Chrome] remote - Debugging  (0) 2015.09.22
엑셀 하이퍼링크 함수  (0) 2015.09.01
모바일 기획  (0) 2015.08.14
아이패드 , 윈도우와 Airplay 하기.  (0) 2015.04.27
개발 명장이 되는 길  (0) 2014.10.10
반응형

모바일 서비스 기획하기


좋은 디자이너, 나쁜 프로젝트매니저, 이상한 개발자
















반응형
반응형

아이패드 , 윈도우와 Airplay 하기.

 

아래 경로에서 파일 다운받아서 실행하면 됨.

단, 아이패드, 데스크탑 둘다 같은 네트워크여야함.

Airplayer.exe 실행한 후 아이패드 하단에 보면 Airplay 표시 나오면 실행됨.

 

iptime N100mini 하서 데스크탑에 연결 후 모드를 "엑세스 지점"으로 변경하고, 아이패드 연결함.

 

http://pro.itools.cn/airplayer

 

 

 

ipTime N100 mini 설치파일 링크

http://iptime.com/iptime/?page_id=126&dffid=&dfsid=&dftid=219

반응형
반응형


개발 명장이 되는 길


1. 매일 한줄의 코드를 작성하도록 노력한다.


2. 어떠한 어려움이 있더라도 테스트 코드를 같이 쓰는 습관을 가진다.


3. 남의 코드에서 다양성을 보고, 진득한 분석을 통해 내 것으로 만들려 한다.


4. 종종 다른 개발자들을 만날 수 있는 기회를 만든다.


5. 내 코드를 공개한다. 그것도 작동하는 상태로.


6. 검색보다 매뉴얼, 스펙을 더 자주 보자.


7. 한가지 언어에 집착하지 않고 대안의 언어를 몇 가지 연마한다.


8. 선한 사람이 될려고 노력한다.


9. 비즈니스도 코딩과 같은 열정으로 공부하고 프로토타입으로 검증해 보자.

반응형
반응형

TOP5 오픈 소스 프로젝트 관리 도구  - http://pseg.or.kr/pseg/infotrend/3615

 

 

 

ProjectLibre

ProjectLibre는 MS Project를 대체할 수 있는 프로젝트 관리 도구입니다. Java가 설치되어 있다면, Linux, Mac OS, Windows OS에서 사용이 가능합니다. 현재 라이센스는 Common Public Attribution License로 무료 소트프웨어로 누구나 사용할 수 있습니다. 다음은 ProjectLibre의 UX를 보여줍니다. WBS 기반의 Gant 차트를 사용하여 MS Project의 사용자라면 누구나 쉽게 사용할 수 있습니다.


projectlibre.png 


LibrePlan

LibrePlan은 Igalia에의해서 개발된 웹 기반 프로젝트 관리 도구입니다. LibrePlan은 실시간으로 협업을 통한 멀티 프로젝트 관리를 가능하게 해주며, 프로젝트 계획, 리소스 관리, 비용, 통합된 대시보드를 제공하고 있습니다. 현재 라이센스는 Affero General Public License이며, Java로 작성되어 있습니다. 다음 그림은 LibrePlan의 UX를 보여주고 있습니다.


LibrePlan.png 


OpenProject

OpenProject는 오픈 소스 웹기반의 프로젝트 관리 도구입니다. Open Project는 무엇보다 협업을 강조하고 있습니다. 타임라인 및 마일스톤 관리, 프로젝트와 관련된 업무, 버그, 변경요청, 요구사항을 추적하고 상태 확인, SVN, Git 저장소와 통합되어 버전과 히스토리가 관리되는 쉬운 문서 관리, Wiki, 미팅 관리, 시간과 비용 리포팅, 뉴스, 포럼, 스크럼 지원 등  협업 중심의 프로젝트 관리를 위한 다양한 기능들을 포함하고 있습니다.


openproject.png 


]project-open[

]project-open[ (이하 Project-Open)은 스페인과 독일의 오픈 소스 프로젝트 팀으로부터 개발된 웹 기반 프로젝트 관리 도구입니다. Project-Open은 프로젝트 관리, IT 서비스 관리, 타임시트 관리, Financial 관리, 리소스 관리, Wiki오 같은 Knowledge 관리, CRM 등 프로젝트와 관련된 전반적인 사항을 관리할 수 있는 기능을 제공합니다. 다음 그림은 Project-Open의 UX를 보여줍니다.


projectopen.png 


Redmine

Redmine은 가장 인기 있는 웹 기반 오픈 소스 프로젝트 관리 도구입니다. Redmine은 프로젝트 관리, 요구사항 관리, 이슈 관리, 변경 관리, 테스트 관리 등의 역할을 수행할 수 있으며, 자유로운 커스터마이징과 다양한 플러그인을 통해 사용자가 원하는 형태의 프로젝트 관리를 수행할 수 있습니다. 다음 링크를 통해 Redmine의 자세한 사항을 확인할 수 있습니다. http://pseg.or.kr/pseg/redmine 다음 그림은 Redmine의 UX를 보여주고 있습니다.


redmine.PNG 


 

 

 

 

 

반응형
반응형

http://goorm.io/

 

구름IDE란?

구름은 클라우드 통합 개발 환경입니다. 이것은 언제 어디서든 이용가능한 개발 환경이라는 의미입니다. 다시 말해, 웹브라우저만 있으면 여러분은 언제 어디서든지 개발을 진행할 수 있습니다. 이렇게 때와 장소를 가리지 않고 개발할 수 있는 환경은 여러분의 창의적인 생각과 시도가 언제 어디서든 빠르게 이뤄질 수 있도록 도와드릴 것입니다. 또한 기업에게는 높은 개발 효율성과 빠른 개발 속도를 안겨줄 것입니다. 이뿐만 아니라 구름은 교육용으로도 쓰일 수 있으며, 중/고등학교 뿐만 아니라 대학교를 비롯한 다양한 교육 기관에서 프로그래밍 언어를 효율적으로 교육하는 데 사용될 수 있습니다.

 

 

무엇이 다르죠?

구름은 2008년 말부터 시작된 프로젝트로서 오랜 기간 시행착오와 개선 작업을 반복하며 개발된 클라우드 통합 개발 환경입니다. 최근 등장하기 시작하고 있는 여타 클라우드 통합 개발 환경들보다 더 나은 성능과 다양한 기능, 높은 안정성을 제공하기 위하여 노력하고 있습니다.

.

지원하는 프로그래밍 언어

C/C++, JAVA, node.js, PHP, JSP, Python, Go, Dart, Web을 지원하고 플러그인을 통해 추가적인 확장 지원이 가능합니다.
현재 지원중인 언어 – C/C++, JAVA, node.js, PHP, JSP, Python, Go, Dar,t Web

 

 

 

 

 

반응형

+ Recent posts